add TARGER define

Dependencies:   mbed

Fork of Serial_HelloWorld_Mbed by mbed official

main.cpp

Committer:
eunkyoungkim
Date:
2015-06-29
Revision:
2:ab03b0b5012c
Parent:
1:5f5162adee9f

File content as of revision 2:ab03b0b5012c:

#include "mbed.h"
 
#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");
    while(1) {
        pc.putc(pc.getc() + 1);
    }
}