Skip to content

Commit f079158

Browse files
committed
Merge branch 'bugfix/fix_calculation_overflow_of_timer_less_than_0x35A_us_error' into 'release/v2.x.x'
bugfix(hw_timer): fix calculation overflow of timer less than 0x35A us error See merge request sdk/ESP8266_RTOS_SDK!533
2 parents 4951dae + 153c109 commit f079158

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver_lib/driver/hw_timer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
((t) ? \
2929
(((t) > 0x35A) ? \
3030
(((t) >> 2) * ((APB_CLK_FREQ >> 4) / 250000) + ((t)&0x3) * ((APB_CLK_FREQ >> 4) / 1000000)) : \
31-
(((t) *(APB_CLK_FREQ>>4)) / 1000000)) : \
31+
((t) *((APB_CLK_FREQ>>4) / 1000000))) : \
3232
0)
3333

3434
#define FRC1_ENABLE_TIMER BIT7

0 commit comments

Comments
 (0)