I'm planning on using the mbed in a motion control project, where certain threads need to run at a specific, high frequency.
Using the mbed library, I could use Ticket to calculate the time spent within a thread, and then subtract that from the desired wait time, and then feed the result into the thread::wait method to ensure a consistent frequency. However, would this be efficient at high frequencies (1500hz with some heavy calculations in the thread)?
In such cases, would it be better to take advantage of the lower level CMSIS libraries?
I realise this question is quite vague, but any comments, advice, etc would be a great help.