Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 3:d072d2d7f043
- Parent:
- 2:f12658f35bbd
diff -r f12658f35bbd -r d072d2d7f043 main.cpp --- a/main.cpp Fri Sep 25 21:44:22 2015 +0000 +++ b/main.cpp Thu Nov 05 04:54:36 2015 +0000 @@ -26,9 +26,9 @@ DigitalInOut out[16] = { PD_2, PC_11, PC_10, PC_12, - PH_0, PH_1, PC_2, PC_3, - PC_0, PC_1, PB_0, PA_4, - PA_1, PA_0, PB_3, PB_5 + PH_1, PC_2, PC_3, PC_0, + PC_1, PB_0, PA_4, PA_1, + PA_0, PB_3, PB_5, PB_4 }; DigitalOut userled(LED1); @@ -50,6 +50,8 @@ { RCC_OscInitTypeDef RCC_OscInitStruct; + // use internal osc - we don't need the external one for any reason + // and we want to also use an osc pin HAL_RCC_DeInit(); RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;