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

pull/25/head
mcudev 7 years ago committed by Pavol Rusnak
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…
Cancel
Save