eunkyoung kim
/
Serial_HelloWorld_Mbed
add TARGER define
Fork of Serial_HelloWorld_Mbed by
Diff: main.cpp
- Revision:
- 2:ab03b0b5012c
- Parent:
- 1:5f5162adee9f
--- a/main.cpp Mon Jun 29 01:40:30 2015 +0000 +++ b/main.cpp Mon Jun 29 03:36:15 2015 +0000 @@ -1,6 +1,11 @@ #include "mbed.h" -Serial pc(PC_2, PC_3); // tx, rx +#if defined(TARGET_WIZwiki_W7500) +#define USBTX PC_2 +#define USBRX PC_3 +#endif + +Serial pc(USBTX, USBRX); // tx, rx int main() { pc.printf("Hello World!\n");