|
|
@@ -33,14 +33,42 @@ Board.peripheral.swclkPin.$assign = "PA20";
|
|
|
Board.peripheral.swdioPin.$assign = "PA19";
|
|
|
|
|
|
GPIO1.$name = "GPIO_Battery_Charging";
|
|
|
-GPIO1.port = "PORTB";
|
|
|
-GPIO1.associatedPins[0].$name = "PIN_PB7";
|
|
|
+GPIO1.associatedPins.create(8);
|
|
|
+GPIO1.associatedPins[0].$name = "PIN_0";
|
|
|
GPIO1.associatedPins[0].pin.$assign = "PB7";
|
|
|
+GPIO1.associatedPins[1].$name = "PIN_1";
|
|
|
+GPIO1.associatedPins[1].pin.$assign = "PB9";
|
|
|
+GPIO1.associatedPins[2].$name = "PIN_2";
|
|
|
+GPIO1.associatedPins[2].pin.$assign = "PB15";
|
|
|
+GPIO1.associatedPins[3].$name = "PIN_3";
|
|
|
+GPIO1.associatedPins[3].pin.$assign = "PA12";
|
|
|
+GPIO1.associatedPins[4].$name = "PIN_4";
|
|
|
+GPIO1.associatedPins[4].pin.$assign = "PB19";
|
|
|
+GPIO1.associatedPins[5].$name = "PIN_5";
|
|
|
+GPIO1.associatedPins[5].pin.$assign = "PB20";
|
|
|
+GPIO1.associatedPins[6].$name = "PIN_6";
|
|
|
+GPIO1.associatedPins[6].pin.$assign = "PA24";
|
|
|
+GPIO1.associatedPins[7].$name = "PIN_7";
|
|
|
+GPIO1.associatedPins[7].pin.$assign = "PA26";
|
|
|
|
|
|
GPIO2.$name = "GPIO_Battery_Discharging";
|
|
|
-GPIO2.port = "PORTB";
|
|
|
-GPIO2.associatedPins[0].$name = "PIN_PB6";
|
|
|
+GPIO2.associatedPins.create(8);
|
|
|
+GPIO2.associatedPins[0].$name = "PIN_L0";
|
|
|
GPIO2.associatedPins[0].pin.$assign = "PB6";
|
|
|
+GPIO2.associatedPins[1].$name = "PIN_L1";
|
|
|
+GPIO2.associatedPins[1].pin.$assign = "PB8";
|
|
|
+GPIO2.associatedPins[2].$name = "PIN_L2";
|
|
|
+GPIO2.associatedPins[2].pin.$assign = "PB14";
|
|
|
+GPIO2.associatedPins[3].$name = "PIN_L3";
|
|
|
+GPIO2.associatedPins[3].pin.$assign = "PB16";
|
|
|
+GPIO2.associatedPins[4].$name = "PIN_L4";
|
|
|
+GPIO2.associatedPins[4].pin.$assign = "PB18";
|
|
|
+GPIO2.associatedPins[5].$name = "PIN_L5";
|
|
|
+GPIO2.associatedPins[5].pin.$assign = "PA22";
|
|
|
+GPIO2.associatedPins[6].$name = "PIN_L6";
|
|
|
+GPIO2.associatedPins[6].pin.$assign = "PB24";
|
|
|
+GPIO2.associatedPins[7].$name = "PIN_L7";
|
|
|
+GPIO2.associatedPins[7].pin.$assign = "PA25";
|
|
|
|
|
|
GPIO3.port = "PORTA";
|
|
|
GPIO3.$name = "GPIO_ADDR_PINS";
|