Nuvoton
/
NuMaker-mbed-wifi-tcp
NuMaker WiFi TCP Example
Revision 23:dc536ce49b37, committed 2019-10-08
- Comitter:
- ccli8
- Date:
- Tue Oct 08 15:40:04 2019 +0800
- Parent:
- 22:6d0bb671f937
- Child:
- 24:38e186a10abe
- Commit message:
- Fix M2351 target naming with mbed-os 5.14
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed_app.json | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Oct 04 03:22:21 2019 +0000 +++ b/main.cpp Tue Oct 08 15:40:04 2019 +0800 @@ -24,7 +24,7 @@ # if TARGET_NUMAKER_IOT_M487 DigitalOut esp_rst(PH_3, 0); // Simulate reset button pressed ESP8266Interface esp(PH_8, PH_9); -# elif TARGET_NUMAKER_PFM_M2351 +# elif TARGET_NU_PFM_M2351_NPSA_NS DigitalIn esp_gpio0(PD_6); // Go boot mode by default // User can change to F/W update mode by short'ing ESP8266 GPIO0/GND // before power-on @@ -90,7 +90,7 @@ wait_ms(5); esp_rst = 1; // Simulate reset button released wait_ms(5); -# elif TARGET_NUMAKER_PFM_M2351 +# elif TARGET_NU_PFM_M2351_NPSA_NS wait_ms(50); esp_pwr_off = 0; // Turn on on-board ESP8266 wait_ms(50);
--- a/mbed_app.json Fri Oct 04 03:22:21 2019 +0000 +++ b/mbed_app.json Tue Oct 08 15:40:04 2019 +0800 @@ -36,7 +36,7 @@ "ESP8266_AT_SEL=ESP8266_AT_ONBOARD" ] }, - "NUMAKER_PFM_M2351": { + "NU_PFM_M2351_NPSA_NS": { "target.macros_add": [ "ESP8266_AT_SEL=ESP8266_AT_ONBOARD" ]