Skip to content

ESP8266: Support power pin in custom wiring #11343

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 29, 2019

Conversation

ccli8
Copy link
Contributor

@ccli8 ccli8 commented Aug 27, 2019

Description

This PR tries to support power pin in custom wiring for the ESP8266 module. It allows for the following configurations:

  • Power pin name
  • Power pin polarity
  • Power on/off time

Related PR

Replacement for #11299 and #11331

Pull request type

[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

@michalpasztamobica @kjbracey-arm

Release Notes

@ciarmcom
Copy link
Member

@ccli8, thank you for your changes.
@michalpasztamobica @kjbracey-arm @ARMmbed/mbed-os-ipcore @ARMmbed/mbed-os-maintainers please review.

Copy link
Contributor

@kjbracey kjbracey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks much more like it. I'd just clarify the help text a bit.

@@ -78,7 +78,7 @@ class ESP8266Interface : public NetworkStack, public WiFiInterface {
* @param rx RX pin
* @param debug Enable debugging
*/
ESP8266Interface(PinName tx, PinName rx, bool debug = false, PinName rts = NC, PinName cts = NC, PinName rst = NC);
ESP8266Interface(PinName tx, PinName rx, bool debug = false, PinName rts = NC, PinName cts = NC, PinName rst = NC, PinName pwr = NC);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a binary compatibility break, but I guess this isn't a core enough component for that to be an issue.

"value": 0
},
"power-on-time-ms": {
"help": "Power-on time in ms for the modem",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clarify this to delay after powering on modem.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modified

In custom wiring, there can be a power pin to power on/off the modem. This
commit supports it and allows for the following configurations:

- power pin name
- power pin polarity
- power on/off delay time
@ccli8 ccli8 force-pushed the nuvoton_esp8266_power_pin branch from c3bec41 to 650e2e5 Compare August 27, 2019 09:57
@0xc0170
Copy link
Contributor

0xc0170 commented Aug 28, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Aug 28, 2019

Test run: FAILED

Summary: 2 of 4 test jobs failed
Build number : 1
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_build-IAR
  • jenkins-ci/mbed-os-ci_build-GCC_ARM

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 28, 2019

CI restarted (internal timeout fault)

@mbed-ci
Copy link

mbed-ci commented Aug 29, 2019

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 2
Build artifacts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants