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)
111
111
CellularDevice *CellularDevice::get_default_instance ()
112
112
{
113
113
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 )
115
115
tr_debug (" UBLOX_PPP flow control: RTS %d CTS %d" , MBED_CONF_UBLOX_PPP_RTS, MBED_CONF_UBLOX_PPP_CTS);
116
116
serial.set_flow_control (SerialBase::RTSCTS, MBED_CONF_UBLOX_PPP_RTS, MBED_CONF_UBLOX_PPP_CTS);
117
117
#endif
Original file line number Diff line number Diff line change @@ -26,8 +26,13 @@ using namespace mbed;
26
26
CellularDevice *CellularDevice::get_target_default_instance ()
27
27
{
28
28
#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
29
33
static BufferedSerial serial (MDMTXD, MDMRXD, MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE);
30
34
static ONBOARD_UBLOX_AT device (&serial);
35
+ #endif
31
36
#elif defined(TARGET_UBLOX_C030_N211)
32
37
static BufferedSerial serial (MDMTXD, MDMRXD, MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE);
33
38
static ONBOARD_UBLOX_N2XX device (&serial);
You can’t perform that action at this time.
0 commit comments