Commit Graph

2 Commits (eb5fdf05c626ef0013a284f544fea9a5d535211e)

Author SHA1 Message Date
Bogdan Marinescu 49606cd5de Improved accuracy for microsecond delays 2016-08-08 19:04:38 +03:00
Bogdan Marinescu 1a1507ac78 Unification of wait functions
This commit adds two implementations for the mbed wait functions (wait,
wait_ms, wait_us):

- with the RTOS present, the wait functions will use `Thread::wait` for
  millisecond delays and a busy wait loop for sub-millisecond delays.
- with the RTOS not present, the wait functions will always use a busy
  wait loop.
2016-07-27 17:30:59 +03:00