I'm attempting to run a task delay timer of 1 second. By my calculation, this should be 100 ticks if my OS_TICK is set to 10ms (10000 us). However, it's off by a factor of .6. It's no coincidence that this happens to be the ratio of the OS_CLOCK default value 60000000 to the SystemCoreClock value of 100000000. Am I misunderstanding the meaning of OS_TICK or is there a mistake in os_itv_set()?
Thanks,
Bryan
FYI I received the following response from Keil:
"OS_CLOCK must match your SystemCoreClock rate, for the timing functions to work properly."
Hope this helps someone!