mirror of https://github.com/ARMmbed/mbed-os.git
Cellular: fixed to compile even if CELLULAR_DEVICE and rx/tx are not defined.
parent
d1ff9ed68d
commit
dbbe2ddc59
|
@ -33,6 +33,10 @@ class FileHandle;
|
|||
const int MAX_PIN_SIZE = 8;
|
||||
const int MAX_PLMN_SIZE = 16;
|
||||
|
||||
#ifndef MBED_CONF_NSAPI_DEFAULT_CELLULAR_APN
|
||||
#define MBED_CONF_NSAPI_DEFAULT_CELLULAR_APN NULL
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Class CellularDevice
|
||||
*
|
||||
|
|
|
@ -33,6 +33,18 @@ using namespace mbed;
|
|||
|
||||
#define DEFAULT_AT_TIMEOUT 1000 // at default timeout in milliseconds
|
||||
|
||||
#ifndef MDMTXD
|
||||
#define MDMTXD NC
|
||||
#endif
|
||||
|
||||
#ifndef MDMRXD
|
||||
#define MDMRXD NC
|
||||
#endif
|
||||
|
||||
#ifndef MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE
|
||||
#define MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE 115200
|
||||
#endif
|
||||
|
||||
AT_CellularDevice::AT_CellularDevice(EventQueue &queue) :
|
||||
_atHandlers(0), _network(0), _sms(0), _sim(0), _power(0), _information(0), _context_list(0), _at_queue(queue),
|
||||
_default_timeout(DEFAULT_AT_TIMEOUT), _modem_debug_on(false)
|
||||
|
|
Loading…
Reference in New Issue