I have a timer ISR that is generating 1 microsecond “ticks”, this is used for time-dependant events in certain functions. This is working fine, but the code in the function blocks on the timer ISR count variable reaching a certain value (actually, decrementing to zero having started at the required delay value).
I would like to replace these with either direct task notifications or semaphores, to remove the blocking that is burning unnecessary CPU cycles.
My question is, is this feasible given that the interrupt is firing every 1 microsecond? Will the overhead be too much?