File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
features/cellular/framework/targets/UBLOX/PPP
targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F437xG/TARGET_UBLOX_C030 Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ UBLOX_PPP::UBLOX_PPP(FileHandle *fh) : AT_CellularDevice(fh)
111111CellularDevice *CellularDevice::get_default_instance ()
112112{
113113 static BufferedSerial serial (MBED_CONF_UBLOX_PPP_TX, MBED_CONF_UBLOX_PPP_RX, MBED_CONF_UBLOX_PPP_BAUDRATE);
114- #if defined (MBED_CONF_UBLOX_AT_RTS ) && defined(MBED_CONF_UBLOX_AT_CTS )
114+ #if defined (MBED_CONF_UBLOX_PPP_RTS ) && defined(MBED_CONF_UBLOX_PPP_CTS )
115115 tr_debug (" UBLOX_PPP flow control: RTS %d CTS %d" , MBED_CONF_UBLOX_PPP_RTS, MBED_CONF_UBLOX_PPP_CTS);
116116 serial.set_flow_control (SerialBase::RTSCTS, MBED_CONF_UBLOX_PPP_RTS, MBED_CONF_UBLOX_PPP_CTS);
117117#endif
Original file line number Diff line number Diff line change @@ -26,8 +26,13 @@ using namespace mbed;
2626CellularDevice *CellularDevice::get_target_default_instance ()
2727{
2828#if defined(TARGET_UBLOX_C030_R41XM)
29+ #if (NSAPI_PPP_AVAILABLE)
30+ static BufferedSerial serial (MDMTXD, MDMRXD, MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE);
31+ static ONBOARD_UBLOX_PPP device (&serial);
32+ #else
2933 static BufferedSerial serial (MDMTXD, MDMRXD, MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE);
3034 static ONBOARD_UBLOX_AT device (&serial);
35+ #endif
3136#elif defined(TARGET_UBLOX_C030_N211)
3237 static BufferedSerial serial (MDMTXD, MDMRXD, MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE);
3338 static ONBOARD_UBLOX_N2XX device (&serial);
You can’t perform that action at this time.
0 commit comments