mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-08-06 15:15:15 +08:00
fix a mistake in hw_time.c;
This commit is contained in:
@ -27,7 +27,7 @@
|
|||||||
#define US_TO_RTC_TIMER_TICKS(t) \
|
#define US_TO_RTC_TIMER_TICKS(t) \
|
||||||
((t) ? \
|
((t) ? \
|
||||||
(((t) > 0x35A) ? \
|
(((t) > 0x35A) ? \
|
||||||
(((t) >> 2) * ((APB_CLK_FREQ >> 4) / 250000) + ((t)&0x3) * ((APB_CLK_FREQ >> 4) / 1000000)) : s\
|
(((t) >> 2) * ((APB_CLK_FREQ >> 4) / 250000) + ((t)&0x3) * ((APB_CLK_FREQ >> 4) / 1000000)) : \
|
||||||
(((t) *(APB_CLK_FREQ>>4)) / 1000000)) : \
|
(((t) *(APB_CLK_FREQ>>4)) / 1000000)) : \
|
||||||
0)
|
0)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user