edisondeng 767aa14086 fix(timer): compensate Timer0_GetTimestamp for pending TF0 overflow
TH0/TL0 torn-read protection didn't cover the case where the hardware
counter already wrapped but Timer0_Isr hasn't run yet to bump
timer0_ovf_count, making the timestamp appear to jump backward by one
overflow period (~32.768ms). Read TF0 under a brief EA guard and treat
a pending-but-unserviced overflow as ovf+1 without clearing it.
2026-07-31 15:52:50 +08:00
2026-07-31 13:57:06 +08:00
2026-07-31 13:57:06 +08:00
Description
No description provided
11 MiB
Languages
C 99.1%
Assembly 0.9%