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@94:d697fe11f3e5, 2014-06-12 (annotated)
- Committer:
- mazgch
- Date:
- Thu Jun 12 12:41:26 2014 +0000
- Revision:
- 94:d697fe11f3e5
- Parent:
- 83:71e3b8bc9ab8
add default arguments to connect
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 | 83:71e3b8bc9ab8 | 5 | #ifdef USING_RTOS |
| mazgch | 83:71e3b8bc9ab8 | 6 | #include "rtos.h" |
| mazgch | 83:71e3b8bc9ab8 | 7 | inline void RELAX_MS(unsigned int ms) { |
| mazgch | 83:71e3b8bc9ab8 | 8 | if (ms) Thread::wait(ms); |
| mazgch | 83:71e3b8bc9ab8 | 9 | else Thread::yield(); |
| mazgch | 83:71e3b8bc9ab8 | 10 | } |
| mazgch | 83:71e3b8bc9ab8 | 11 | #else |
| mazgch | 83:71e3b8bc9ab8 | 12 | inline void RELAX_MS(unsigned int ms) { |
| mazgch | 83:71e3b8bc9ab8 | 13 | if (ms) wait_ms(ms); |
| mazgch | 83:71e3b8bc9ab8 | 14 | } |
| mazgch | 83:71e3b8bc9ab8 | 15 | #endif |