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.
Dependents: 02_DPPU_JUANDA_120 02_DPPU_JUANDA_120_Latest_copy 02_DPPU_JUANDA_120_Latest
Relax.h@74:208e3e32d263, 2014-05-15 (annotated)
- Committer:
- mazgch
- Date:
- Thu May 15 22:20:42 2014 +0000
- Revision:
- 74:208e3e32d263
- Child:
- 83:71e3b8bc9ab8
initial version of restructured u-blox library
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| mazgch | 74:208e3e32d263 | 1 | #pragma once |
| mazgch | 74:208e3e32d263 | 2 | |
| mazgch | 74:208e3e32d263 | 3 | #include "mbed.h" |
| mazgch | 74:208e3e32d263 | 4 | |
| mazgch | 74:208e3e32d263 | 5 | // declare the osDelay (usually from cmsis_os.h) |
| mazgch | 74:208e3e32d263 | 6 | extern "C" void osDelay(uint32_t ms); |
| mazgch | 74:208e3e32d263 | 7 | |
| mazgch | 74:208e3e32d263 | 8 | /** A wait function that is independent whether the OS is includes or not |
| mazgch | 74:208e3e32d263 | 9 | if rtos is included the Thread will yield for a certain time |
| mazgch | 74:208e3e32d263 | 10 | otherwise (without rtos) it will just stay in a busy loop. |
| mazgch | 74:208e3e32d263 | 11 | |
| mazgch | 74:208e3e32d263 | 12 | \param ms number of milliseconds to wait |
| mazgch | 74:208e3e32d263 | 13 | */ |
| mazgch | 74:208e3e32d263 | 14 | inline void RELAX_MS(int ms) { |
| mazgch | 74:208e3e32d263 | 15 | osDelay(ms); |
| mazgch | 74:208e3e32d263 | 16 | } |