interrupt géré compil ok sans isr

Fork of T2_STM32 by Atechsys

Revision:
0:c365c76c11c3
Child:
1:979edb6d1559
diff -r 000000000000 -r c365c76c11c3 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Dec 22 14:36:12 2017 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+
+//SAVE_TEST
+
+PwmOut mypwm(PWM_OUT);
+
+DigitalOut myled(LED1);
+
+int main() {
+    
+    mypwm.period_ms(10);
+    mypwm.pulsewidth_ms(1);
+  
+    printf("pwm set to %.2f %%\n", mypwm.read() * 100);
+    
+    while(1) {
+        myled = !myled;
+        wait(1);
+    }
+}