mirror of https://github.com/ARMmbed/mbed-os.git
STMOD_CELLULAR: remove flow control support for DISCO_L4R9I
parent
1a2a3515ff
commit
fb35091432
|
@ -109,7 +109,6 @@ nsapi_error_t STModCellular::soft_power_on()
|
||||||
|
|
||||||
tr_debug("Modem %sready to receive AT commands\r\n", rdy ? "" : "NOT ");
|
tr_debug("Modem %sready to receive AT commands\r\n", rdy ? "" : "NOT ");
|
||||||
|
|
||||||
#if DEVICE_SERIAL_FC
|
|
||||||
if ((MBED_CONF_STMOD_CELLULAR_CTS != NC) && (MBED_CONF_STMOD_CELLULAR_RTS != NC)) {
|
if ((MBED_CONF_STMOD_CELLULAR_CTS != NC) && (MBED_CONF_STMOD_CELLULAR_RTS != NC)) {
|
||||||
tr_debug("Enable flow control\r\n");
|
tr_debug("Enable flow control\r\n");
|
||||||
|
|
||||||
|
@ -133,7 +132,6 @@ nsapi_error_t STModCellular::soft_power_on()
|
||||||
tr_error("Failed to enable hw flow control\r\n");
|
tr_error("Failed to enable hw flow control\r\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
rtos::ThisThread::sleep_for(500);
|
rtos::ThisThread::sleep_for(500);
|
||||||
|
|
||||||
|
@ -165,10 +163,10 @@ CellularDevice *CellularDevice::get_default_instance()
|
||||||
tr_debug("MODEM default instance\r\n");
|
tr_debug("MODEM default instance\r\n");
|
||||||
|
|
||||||
static UARTSerial serial(MBED_CONF_STMOD_CELLULAR_TX, MBED_CONF_STMOD_CELLULAR_RX, MBED_CONF_STMOD_CELLULAR_BAUDRATE);
|
static UARTSerial serial(MBED_CONF_STMOD_CELLULAR_TX, MBED_CONF_STMOD_CELLULAR_RX, MBED_CONF_STMOD_CELLULAR_BAUDRATE);
|
||||||
#if defined (MBED_CONF_STMOD_CELLULAR_RTS) && defined(MBED_CONF_STMOD_CELLULAR_CTS)
|
if ((MBED_CONF_STMOD_CELLULAR_CTS != NC) && (MBED_CONF_STMOD_CELLULAR_RTS != NC)) {
|
||||||
tr_debug("STMOD_CELLULAR flow control: RTS %d CTS %d\r\n", MBED_CONF_STMOD_CELLULAR_RTS, MBED_CONF_STMOD_CELLULAR_CTS);
|
tr_debug("STMOD_CELLULAR flow control: RTS %d CTS %d\r\n", MBED_CONF_STMOD_CELLULAR_RTS, MBED_CONF_STMOD_CELLULAR_CTS);
|
||||||
serial.set_flow_control(SerialBase::RTSCTS, MBED_CONF_STMOD_CELLULAR_RTS, MBED_CONF_STMOD_CELLULAR_CTS);
|
serial.set_flow_control(SerialBase::RTSCTS, MBED_CONF_STMOD_CELLULAR_RTS, MBED_CONF_STMOD_CELLULAR_CTS);
|
||||||
#endif
|
}
|
||||||
static STModCellular device(&serial);
|
static STModCellular device(&serial);
|
||||||
return &device;
|
return &device;
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,5 +65,10 @@
|
||||||
"help": "Provide as default CellularDevice [true/false]",
|
"help": "Provide as default CellularDevice [true/false]",
|
||||||
"value": false
|
"value": false
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"target_overrides": {
|
||||||
|
"DISCO_L4R9I": {
|
||||||
|
"rts": "NC"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue