File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
components/wifi/esp8266-driver Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ ESP8266Interface::ResetPin::ResetPin(PinName rst_pin) : _rst_pin(mbed::DigitalOu
143
143
void ESP8266Interface::ResetPin::rst_assert ()
144
144
{
145
145
if (_rst_pin.is_connected ()) {
146
- _rst_pin = 0 ;
146
+ _rst_pin = MBED_CONF_ESP8266_RST_PIN_POLARITY ;
147
147
tr_debug (" HW reset asserted" );
148
148
}
149
149
}
@@ -152,7 +152,7 @@ void ESP8266Interface::ResetPin::rst_deassert()
152
152
{
153
153
if (_rst_pin.is_connected ()) {
154
154
// Notice that Pin7 CH_EN cannot be left floating if used as reset
155
- _rst_pin = 1 ;
155
+ _rst_pin = !MBED_CONF_ESP8266_RST_PIN_POLARITY ;
156
156
tr_debug (" HW reset deasserted" );
157
157
}
158
158
}
Original file line number Diff line number Diff line change 21
21
"help" : " RESET pin for the modem, defaults to Not Connected" ,
22
22
"value" : null
23
23
},
24
+ "rst-pin-polarity" : {
25
+ "help" : " Polarity of RESET pin for the modem. [0/1]" ,
26
+ "value" : 0
27
+ },
24
28
"debug" : {
25
29
"help" : " Enable debug logs. [true/false]" ,
26
30
"value" : false
You can’t perform that action at this time.
0 commit comments