A quick question,
I am using systick in order to have some sort of a timer in my system. However, I would also like to save data to a file every X number of ticks. My question is, assuming the time it takes to save data to the file is shorter than the tick time would my time counter still be accurate if my code was something like this:
void
SysTickHandler(void)
{
static uint32_t last_save_time=0;
// Increment the tick count.
g_ui32TickCount++;
if (g_ui32TickCount-last_save_time>=100)
{
last_save_time=g_ui32TickCount;
WriteFile1();
}
}
Thanks in advance.