support library for C027 helper functions for Buffer Pipes, Buffered Serial Port (rtos capable) and GPS parsing. It includes modem APIs for USSD, SMS and Sockets.

Fork of C027_Support by u-blox

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?

UserRevisionLine numberNew 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