Trueserve Dot Org / Mbed 2 deprecated Nucleo_IOReg

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
true
Date:
Thu Nov 05 04:54:36 2015 +0000
Parent:
2:f12658f35bbd
Commit message:
- Updated pin offsets as PH_0 isn't working (likely AF but not good practice to use both oscillator pins anyway); - Adding mapping.txt showing human-readable input/output pairs

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mapping.txt Show annotated file Show diff for this revision Revisions of this file
--- 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;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mapping.txt	Thu Nov 05 04:54:36 2015 +0000
@@ -0,0 +1,16 @@
+01 = in PB_12 out  PD_2
+02 = in PA_11 out PC_11
+03 = in PA_12 out PC_10
+04 = in  PC_5 out PC_12
+05 = in  PC_6 out  PH_1
+06 = in  PC_8 out  PC_2
+07 = in  PC_9 out  PC_3
+08 = in  PB_8 out  PC_0
+09 = in  PB_9 out  PC_1
+10 = in  PA_6 out  PB_0
+11 = in  PA_7 out  PA_4
+12 = in  PB_6 out  PA_1
+13 = in  PC_7 out  PA_0
+14 = in  PA_9 out  PB_3
+15 = in  PA_8 out  PB_5
+16 = in PB_10 out  PB_4
\ No newline at end of file