mbed-classic on Bluepill
Dependencies: mbed-STM32F103C8T6 mbed
Fork of Testato-mbed-dev-Bluepill by
main.cpp@16:2231520f7869, 2017-07-05 (annotated)
- Committer:
- testato
- Date:
- Wed Jul 05 14:53:48 2017 +0000
- Revision:
- 16:2231520f7869
- Parent:
- 15:db1bed031739
updated mbed; updated F1
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:2231520f7869 | 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:2231520f7869 | 12 | |
testato | 16:2231520f7869 | 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:2231520f7869 | 25 | |
testato | 16:2231520f7869 | 26 | |
testato | 16:2231520f7869 | 27 | |
testato | 10:69c66b10784c | 28 | //pc.printf("Blink\r\n"); |
hudakz | 0:ab218237069e | 29 | } |
hudakz | 0:ab218237069e | 30 | } |
hudakz | 8:f1432e9af6c8 | 31 |