mbed-dev + bluepill
Dependencies: mbed-STM32F103C8T6 mbed-dev
main.cpp@19:d283e6ea2c72, 2018-04-06 (annotated)
- Committer:
- testato
- Date:
- Fri Apr 06 18:04:47 2018 +0000
- Revision:
- 19:d283e6ea2c72
- Parent:
- 16:3a0c7d186eef
update
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hudakz | 5:3c3ef17a17a6 | 1 | #include "stm32f103c8t6.h" |
hudakz | 0:ab218237069e | 2 | #include "mbed.h" |
hudakz | 8:f1432e9af6c8 | 3 | |
testato | 13:2bfcb5dc142a | 4 | |
testato | 16:3a0c7d186eef | 5 | |
testato | 10:69c66b10784c | 6 | //Serial pc(PA_2, PA_3); |
testato | 12:3ddf4333812e | 7 | DigitalOut myled(PC_13); |
hudakz | 8:f1432e9af6c8 | 8 | |
testato | 13:2bfcb5dc142a | 9 | |
testato | 13:2bfcb5dc142a | 10 | |
testato | 13:2bfcb5dc142a | 11 | |
testato | 16:3a0c7d186eef | 12 | |
testato | 16:3a0c7d186eef | 13 | |
testato | 11:2cc880f72fc1 | 14 | int main() |
testato | 11:2cc880f72fc1 | 15 | { |
testato | 12:3ddf4333812e | 16 | confSysClock(); //Configure system clock (72MHz HSE clock, 48MHz USB clock) |
testato | 11:2cc880f72fc1 | 17 | |
testato | 11:2cc880f72fc1 | 18 | while(1) |
testato | 11:2cc880f72fc1 | 19 | { |
testato | 15:db1bed031739 | 20 | myled = 0; |
testato | 15:db1bed031739 | 21 | wait(0.1); |
testato | 15:db1bed031739 | 22 | myled = 1; |
testato | 15:db1bed031739 | 23 | wait(0.1); |
testato | 15:db1bed031739 | 24 | |
testato | 16:3a0c7d186eef | 25 | |
testato | 16:3a0c7d186eef | 26 | |
testato | 16:3a0c7d186eef | 27 | |
testato | 10:69c66b10784c | 28 | //pc.printf("Blink\r\n"); |
hudakz | 0:ab218237069e | 29 | } |
hudakz | 0:ab218237069e | 30 | } |
hudakz | 8:f1432e9af6c8 | 31 |