[Nucleo F103RB] UART0 Transmit Example.

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
hoangnguyen578
Date:
Wed Feb 12 18:44:29 2014 +0000
Commit message:
[ST Nucleo F103RB] UART0 ( PA_9 ->Tx , PA_10->Rx) Transmit Example.

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 9e15cfed60ea main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Feb 12 18:44:29 2014 +0000
@@ -0,0 +1,8 @@
+#include "mbed.h"
+ 
+Serial device(PA_9, PA_10);  // tx, rx
+ 
+int main() {
+    device.baud(19200);
+    device.printf("Hello World\n");
+}
\ No newline at end of file
diff -r 000000000000 -r 9e15cfed60ea mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Feb 12 18:44:29 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/824293ae5e43
\ No newline at end of file