Could someone please advise me on the best way to implement a high resolution timer whilst using and without breaking CTL?
At present we are using an 8MHz crystal and running at 72MHz. I need some fine resolution timing for things like dallas, generating square waves on a GPIO to drive a buzzer etc. What would be the simplest wait to give me an equivalent of:
#define WAIT_TICKS(x) ctl_timeout_wait(ctl_get_current_time()+x);
but where x is microseconds rather than milliseconds?
Processor is Cortex M3.
Thanks for your help,
Please sign in to leave a comment.