kumaresh kj / Mbed 2 deprecated NucleoF103_SERIAL_UART_printf

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
kumaresh
Date:
Mon Apr 20 10:32:26 2015 +0000
Commit message:
nucleo serial comm details

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 30ef5d9ef234 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Apr 20 10:32:26 2015 +0000
@@ -0,0 +1,26 @@
+#include "mbed.h"
+
+//------------------------------------
+// Hyperterminal configuration
+// defau9600 bauds, 8-bit data, no parity
+
+//Arduino pin D0 & D1 is disconnected by default in nucleo board and hence serial O/P or I/P will not work.
+// REFER ST USER MANUAL UM 1724
+
+//O/P/ or I/P will work in ST link(USB to serial comm) or can also be used from CN3 connector of nucleo board. 
+//------------------------------------
+
+Serial pc(SERIAL_TX, SERIAL_RX);
+ 
+DigitalOut myled(LED1);
+ 
+int main() {
+  int i = 1;
+  pc.printf("Hello World !\n");
+  while(1) { 
+      wait(0.8);
+      pc.printf("This program runs since %d seconds.\n", i++);
+      myled = !myled;
+  }
+}
+ 
\ No newline at end of file
diff -r 000000000000 -r 30ef5d9ef234 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Apr 20 10:32:26 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/433970e64889
\ No newline at end of file