Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-src by
Diff: common/wait_api.c
- Revision:
- 636:be1e636d5109
- Parent:
- 19:398f4c622e1b
--- a/common/wait_api.c Tue Jun 09 15:30:08 2015 +0100 +++ b/common/wait_api.c Thu Jun 02 04:52:00 2016 +0000 @@ -24,6 +24,10 @@ wait_us(ms * 1000); } +void wait_ns(int ns) { + wait_us(ns / 1000); +} + void wait_us(int us) { uint32_t start = us_ticker_read(); while ((us_ticker_read() - start) < (uint32_t)us);