Programa base para la tarjeta STM32-MINIMO, usando la libreria mbed-dev.

Dependencies:   mbed-dev

Fork of STM32F103C8T6_Hello by Zoltan Hudak

Files at this revision

API Documentation at this revision

Comitter:
Siconetics
Date:
Mon Dec 19 15:26:09 2016 +0000
Parent:
10:4b88be251088
Commit message:
STM32-MINIMO_MBED_Hello

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-STM32F103C8T6.lib Show diff for this revision Revisions of this file
mbed-dev.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Sep 15 18:40:03 2016 +0000
+++ b/main.cpp	Mon Dec 19 15:26:09 2016 +0000
@@ -1,20 +1,19 @@
-#include "stm32f103c8t6.h"
+
 #include "mbed.h"
-  
-int main() {
-    confSysClock();     //Configure system clock (72MHz HSE clock, 48MHz USB clock)
-    
-    Serial      pc(PA_2, PA_3);
-    DigitalOut  myled(LED1);
-    
-    while(1) {
-        // The on-board LED is connected, via a resistor, to +3.3V (not to GND). 
-        // So to turn the LED on or off we have to set it to 0 or 1 respectively
-        myled = 0;      // turn the LED on
-        wait_ms(200);   // 200 millisecond
-        myled = 1;      // turn the LED off
-        wait_ms(1000);  // 1000 millisecond
-        pc.printf("Blink\r\n");
-    }
+
+Serial     pc(PA_9, PA_10);
+DigitalOut myled(PC_13);
+
+int main()
+{
+ProgMain:
+// The on-board LED is connected, via a resistor, to +3.3V (not to GND). 
+// So to turn the LED on or off we have to set it to 0 or 1 respectively
+myled = false;  // turn the LED on
+wait_ms(100);   // 100 millisecond
+myled = true;   // turn the LED off
+wait_ms(100);  // 100 millisecond
+pc.printf("Blink\r\n");
+goto ProgMain;
+
 }
- 
\ No newline at end of file
--- a/mbed-STM32F103C8T6.lib	Thu Sep 15 18:40:03 2016 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/hudakz/code/mbed-STM32F103C8T6/#9fbbea76d6f6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-dev.lib	Mon Dec 19 15:26:09 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed-dev/#9a67f0b066fc
--- a/mbed.bld	Thu Sep 15 18:40:03 2016 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/b0220dba8be7
\ No newline at end of file