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 06_frdm_serial by
Revision 0:e4d31a61ad72, committed 2015-11-23
- Comitter:
- icserny
- Date:
- Mon Nov 23 12:18:36 2015 +0000
- Commit message:
- First version
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r e4d31a61ad72 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Nov 23 12:18:36 2015 +0000 @@ -0,0 +1,18 @@ +/** 06_frdm_serial + * Serial demo program for the FRDM-KL25Z board + * Select UART0 for communication via OpenSDA's USB-UART converter + * Default spedd and format are: 9600 bps, 8-bit, no parity, 1 stop bit + */ + +#include "mbed.h" + +Serial pc(USBTX,USBRX); //UART0 via OpenSDA + +int main() +{ + pc.printf("\r\nWelcome to FRDM-KL25Z board!\r\n"); + while(1) { + char c = pc.getc(); //Read one character + pc.printf("received char: %c = %d\r\n",c,c); + } +}
diff -r 000000000000 -r e4d31a61ad72 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Nov 23 12:18:36 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/9296ab0bfc11 \ No newline at end of file