C027_Support library plus AT Comand for dialing.
Fork of C027_Support_New by
Relax.h@83:71e3b8bc9ab8, 2014-05-28 (annotated)
- Committer:
- mazgch
- Date:
- Wed May 28 14:53:37 2014 +0000
- Revision:
- 83:71e3b8bc9ab8
- Parent:
- 74:208e3e32d263
disable automatic detection of rtos
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 |