mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-08-06 07:00:05 +08:00
bugfix(hw_timer): fix calculation overflow of timer less than 0x35A us error
This commit is contained in:
@ -28,7 +28,7 @@
|
||||
((t) ? \
|
||||
(((t) > 0x35A) ? \
|
||||
(((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)
|
||||
|
||||
#define FRC1_ENABLE_TIMER BIT7
|
||||
|
Reference in New Issue
Block a user