1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-30 03:18:20 +00:00

code cleanup 3: add note about timer wrap and use increment operator

This commit is contained in:
mcudev 2017-10-15 08:33:33 -04:00 committed by Pavol Rusnak
parent a1c33e32f0
commit e4aec8f302

View File

@ -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++;
}