mbed-os + bluepill
Dependencies: mbed-STM32F103C8T6
Diff: main.cpp
- Revision:
- 0:8867b17120b8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Sep 17 10:10:55 2016 +0000 @@ -0,0 +1,32 @@ +#include "stm32f103c8t6.h" +#include "mbed.h" + + + +//Serial pc(PA_2, PA_3); +DigitalOut myled(PC_13); + + + + +// main() runs in its own thread in the OS +// (note the calls to Thread::wait below for delays) +int main() +{ + confSysClock(); //Configure system clock (72MHz HSE clock, 48MHz USB clock) + + while(1) + { + myled = 0; + wait(0.1); + myled = 1; + wait(0.1); + + // myled = !myled; + // Thread::wait(100); + + //pc.printf("Blink\r\n"); + } + +} +