can i use hardware timer in a thread?

suncs2001 wrote on Monday, October 24, 2016:

as we all know, we can use taskDelay in a thread , but the software timer is not quite precise. so what will be happen ii i use hardware timer in thread. for example i want a us delay.

edwards3 wrote on Monday, October 24, 2016:

It is not clear what you mean. Do you want to configure a hardware timer then poll it until it expires? You can do that, but if you poll it (just loop until it expires) then not tasks with lower priority will run because the task doing the polling is alway either Running or Ready.