File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
features/cellular/framework/targets/UBLOX/N2XX Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -149,3 +149,17 @@ nsapi_error_t UBLOX_N2XX::set_pin(const char *sim_pin)
149
149
_at->cmd_stop_read_resp ();
150
150
return _at->unlock_return_error ();
151
151
}
152
+
153
+ #if MBED_CONF_UBLOX_N2XX_PROVIDE_DEFAULT
154
+ #include " UARTSerial.h"
155
+ CellularDevice *CellularDevice::get_default_instance ()
156
+ {
157
+ static UARTSerial serial (MBED_CONF_UBLOX_N2XX_TX, MBED_CONF_UBLOX_N2XX_RX, MBED_CONF_UBLOX_N2XX_BAUDRATE);
158
+ #if defined (MBED_CONF_UBLOX_N2XX_RTS) && defined(MBED_CONF_UBLOX_N2XX_CTS)
159
+ tr_debug (" UBLOX_N2XX flow control: RTS %d CTS %d" , MBED_CONF_UBLOX_N2XX_RTS, MBED_CONF_UBLOX_N2XX_CTS);
160
+ serial.set_flow_control (SerialBase::RTSCTS, MBED_CONF_UBLOX_N2XX_RTS, MBED_CONF_UBLOX_N2XX_CTS);
161
+ #endif
162
+ static UBLOX_N2XX device (&serial);
163
+ return &device;
164
+ }
165
+ #endif
You can’t perform that action at this time.
0 commit comments