Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of webserverBlinky by
Diff: main.cpp
- Revision:
- 88:b4a71242837c
- Parent:
- 87:9f5ac1fabd95
- Child:
- 89:2c8dd0c2a426
diff -r 9f5ac1fabd95 -r b4a71242837c main.cpp --- a/main.cpp Fri Jul 21 00:35:24 2017 +0000 +++ b/main.cpp Fri Jul 21 01:02:04 2017 +0000 @@ -35,11 +35,9 @@ // here we define the debug serial port for the various target boards // add yours if it's not in here -#if TARGET_LPC1768 +#if defined(TARGET_LPC1768) Serial xx(p9, p10); // Second serial port on LPC1768 - not required to run, if you get compile error here, change #define SERIAL_PORT_MONITOR_YES to #define SERIAL_PORT_MONITOR_NO -#elif TARGET_NUCLEO_F446RE -Serial xx(PC_10, PC_11); // Second serial port on NUCLEO boards - not required to run, if you get compile error here, change #define SERIAL_PORT_MONITOR_YES to #define SERIAL_PORT_MONITOR_NO -#elif TARGET_NUCLEO_L152RE +#elif defined(TARGET_NUCLEO_F446RE) || defined(TARGET_NUCLEO_L152RE) Serial xx(PC_10, PC_11); // Second serial port on NUCLEO boards - not required to run, if you get compile error here, change #define SERIAL_PORT_MONITOR_YES to #define SERIAL_PORT_MONITOR_NO #else #error Add your target board's second serial port here if you want to use debugging - or choose SERIAL_PORT_MONITOR_NO