mirror of https://github.com/ARMmbed/mbed-os.git
STMOD_CELLULAR: set CTS with PullDown
parent
ea448f5144
commit
82ecd19e9c
|
@ -113,6 +113,8 @@ nsapi_error_t STModCellular::soft_power_on()
|
||||||
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");
|
||||||
|
|
||||||
|
pin_mode(MBED_CONF_STMOD_CELLULAR_CTS, PullDown);
|
||||||
|
|
||||||
_at->lock();
|
_at->lock();
|
||||||
// enable CTS/RTS flowcontrol
|
// enable CTS/RTS flowcontrol
|
||||||
_at->set_stop_tag(mbed::OK);
|
_at->set_stop_tag(mbed::OK);
|
||||||
|
|
Loading…
Reference in New Issue