mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-26 17:38:39 +00:00
code cleanup 3: add note about timer wrap and use increment operator
This commit is contained in:
parent
a1c33e32f0
commit
e4aec8f302
@ -45,5 +45,7 @@ volatile uint32_t uwTick = 0;
|
||||
|
||||
void SysTick_Handler(void)
|
||||
{
|
||||
uwTick += 1;
|
||||
// this is a millisecond tick counter that wraps after approximately
|
||||
// 49.71 days = (0xffffffff / (24 * 60 * 60 * 1000))
|
||||
uwTick++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user