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.

Dependents:   HTTPClient_Cellular_HelloWorld Cellular_HelloMQTT MbedSmartRestMain Car_Bon_car_module ... more

This library is intended to be used with u-blox products such as the C027 or a shield with u-blox cellular and GPS modules like the cellular and positioning shield from Embedded Artist.

For 2G/GSM and 3G/UMTS you need to:

  • have a SIM card and know its PIN number
  • need to know you network operators APN setting These setting should be passed to the connect or init and join functions. You can also extend the APN database in MDMAPN.h.

For CDMA products you need to make sure that you have provisioned and activated the modem with either Sprint or Verizon.

Relax.h

Committer:
mazgch
Date:
2014-06-05
Revision:
84:a05edb010176
Parent:
74:208e3e32d263
Child:
83:71e3b8bc9ab8

File content as of revision 84:a05edb010176:

#pragma once 

#include "mbed.h"

// declare the osDelay (usually from cmsis_os.h)
extern "C" void osDelay(uint32_t ms);

/** A wait function that is independent whether the OS is includes or not
    if rtos is included the Thread will yield for a certain time 
    otherwise (without rtos) it will just stay in a busy loop.
    
    \param ms number of milliseconds to wait
*/
inline void RELAX_MS(int ms) { 
    osDelay(ms); 
}