Trueserve Dot Org / Mbed 2 deprecated Nucleo_IOReg

Dependencies:   mbed

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;