Merge pull request #2 from ucloud/scons_compile_error

scons compile error
This commit is contained in:
ethanDu1 2020-01-09 18:22:41 +08:00 committed by GitHub
commit f0535fc249
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 3 deletions

View File

@ -26,13 +26,13 @@ bool HAL_Timer_Expired(Timer *timer) {
return timer->end_time < now;
}
void HAL_Timer_Countdown_ms(_IN_ Timer *timer, unsigned int timeout_ms) {
void HAL_Timer_Countdown_ms(Timer *timer, uint32_t timeout_ms) {
rt_tick_t now;
now = rt_tick_get();
timer->end_time = now + rt_tick_from_millisecond(timeout_ms);
}
void HAL_Timer_Countdown(_IN_ Timer *timer, unsigned int timeout) {
void HAL_Timer_Countdown(Timer *timer, uint32_t timeout) {
rt_tick_t now;
now = rt_tick_get();
timer->end_time = now + rt_tick_from_millisecond(timeout * 1000);

View File

@ -624,4 +624,4 @@ do_exit:
HAL_Free(msg_report);
FUNC_EXIT_RC(ret);
}
}

View File

@ -57,6 +57,14 @@ extern "C" {
} while(0)
#endif
#ifndef SCNi8
#define SCNi8 "hhi"
#endif
#ifndef SCNu8
#define SCNu8 "hhu"
#endif
char *LITE_strdup(const char *src);
char *LITE_format_string(const char *fmt, ...);
char *LITE_format_nstring(const int len, const char *fmt, ...);