Changed to use platform baudrate to uart.

pull/6082/head
Teppo Järvelin 2018-02-10 15:42:58 +02:00 committed by Ari Parkkila
parent ccd9dc3892
commit 1cbddfbc10
2 changed files with 1 additions and 5 deletions

View File

@ -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)
{
}

View File

@ -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);