mirror of https://github.com/ARMmbed/mbed-os.git
Changed to use platform baudrate to uart.
parent
ccd9dc3892
commit
1cbddfbc10
|
@ -39,10 +39,6 @@
|
|||
static EventQueue at_queue(8 * EVENTS_EVENT_SIZE);
|
||||
static CELLULAR_DEVICE cellularDevice(at_queue);
|
||||
|
||||
#define ENUM_MACRO(name, v1, v2, v3, v4, v5, v6, v7)\
|
||||
enum name { v1, v2, v3, v4, v5, v6, v7};\
|
||||
const char *name##Strings[] = { #v1, #v2, #v3, #v4, #v5, #v6, #v7};
|
||||
|
||||
CellularConnectionUtil::CellularConnectionUtil() : _serial(0), _state(STATE_POWER_ON), _next_state(_state), _status_callback(0), _network(0), _power(0), _queue(8 * EVENTS_EVENT_SIZE), _queue_thread(0), _cellularDevice(&cellularDevice)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include "CellularConnectionUtil.h"
|
||||
static CellularConnectionUtil cellularConnection;
|
||||
static Semaphore cellularSemaphore(0);
|
||||
static UARTSerial cellularSerial(MDMTXD, MDMRXD, MBED_CONF_APP_CELLULAR_SERIAL_SPEED);
|
||||
static UARTSerial cellularSerial(MDMTXD, MDMRXD, MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE);
|
||||
static int cellular_status(int state, int next_state)
|
||||
{
|
||||
printf("cellular_status %d=>%d", state, next_state);
|
||||
|
|
Loading…
Reference in New Issue