diff --git a/ports/psoc6/modules/machine/machine_pin_phy.c b/ports/psoc6/modules/machine/machine_pin_phy.c index e9b8d7e58a3d..6502b54b4193 100644 --- a/ports/psoc6/modules/machine/machine_pin_phy.c +++ b/ports/psoc6/modules/machine/machine_pin_phy.c @@ -2,126 +2,6 @@ #include "py/mphal.h" #include "machine_pin_phy.h" -// extern const uint8_t machine_pin_num_of_cpu_pins; - -/*machine_pin_phy_obj_t machine_pin_phy_obj[] = { - {PIN_P0_0, "P0_0", PIN_PHY_FUNC_NONE}, - {PIN_P0_1, "P0_1", PIN_PHY_FUNC_NONE}, - {PIN_P0_2, "P0_2", PIN_PHY_FUNC_NONE}, - {PIN_P0_3, "P0_3", PIN_PHY_FUNC_NONE}, - {PIN_P0_4, "P0_4", PIN_PHY_FUNC_NONE}, - {PIN_P0_5, "P0_5", PIN_PHY_FUNC_NONE}, - - {PIN_P1_0, "P1_0", PIN_PHY_FUNC_NONE}, - {PIN_P1_1, "P1_1", PIN_PHY_FUNC_NONE}, - {PIN_P1_2, "P1_2", PIN_PHY_FUNC_NONE}, - {PIN_P1_3, "P1_3", PIN_PHY_FUNC_NONE}, - {PIN_P1_4, "P1_4", PIN_PHY_FUNC_NONE}, - {PIN_P1_5, "P1_5", PIN_PHY_FUNC_NONE}, - - {PIN_P2_0, "P2_0", PIN_PHY_FUNC_NONE}, - {PIN_P2_1, "P2_1", PIN_PHY_FUNC_NONE}, - {PIN_P2_2, "P2_2", PIN_PHY_FUNC_NONE}, - {PIN_P2_3, "P2_3", PIN_PHY_FUNC_NONE}, - {PIN_P2_4, "P2_4", PIN_PHY_FUNC_NONE}, - {PIN_P2_5, "P2_5", PIN_PHY_FUNC_NONE}, - {PIN_P2_6, "P2_6", PIN_PHY_FUNC_NONE}, - {PIN_P2_7, "P2_7", PIN_PHY_FUNC_NONE}, - - {PIN_P3_0, "P3_0", PIN_PHY_FUNC_NONE}, - {PIN_P3_1, "P3_1", PIN_PHY_FUNC_NONE}, - {PIN_P3_2, "P3_2", PIN_PHY_FUNC_NONE}, - {PIN_P3_3, "P3_3", PIN_PHY_FUNC_NONE}, - {PIN_P3_4, "P3_4", PIN_PHY_FUNC_NONE}, - {PIN_P3_5, "P3_5", PIN_PHY_FUNC_NONE}, - - {PIN_P4_0, "P4_0", PIN_PHY_FUNC_NONE}, - {PIN_P4_1, "P4_1", PIN_PHY_FUNC_NONE}, - - {PIN_P5_0, "P5_0", PIN_PHY_FUNC_NONE}, - {PIN_P5_1, "P5_1", PIN_PHY_FUNC_NONE}, - {PIN_P5_2, "P5_2", PIN_PHY_FUNC_NONE}, - {PIN_P5_3, "P5_3", PIN_PHY_FUNC_NONE}, - {PIN_P5_4, "P5_4", PIN_PHY_FUNC_NONE}, - {PIN_P5_5, "P5_5", PIN_PHY_FUNC_NONE}, - {PIN_P5_6, "P5_6", PIN_PHY_FUNC_NONE}, - {PIN_P5_7, "P5_7", PIN_PHY_FUNC_NONE}, - - {PIN_P6_0, "P6_0", PIN_PHY_FUNC_NONE}, - {PIN_P6_1, "P6_1", PIN_PHY_FUNC_NONE}, - {PIN_P6_2, "P6_2", PIN_PHY_FUNC_NONE}, - {PIN_P6_3, "P6_3", PIN_PHY_FUNC_NONE}, - {PIN_P6_4, "P6_4", PIN_PHY_FUNC_NONE}, - {PIN_P6_5, "P6_5", PIN_PHY_FUNC_NONE}, - {PIN_P6_6, "P6_6", PIN_PHY_FUNC_NONE}, - {PIN_P6_7, "P6_7", PIN_PHY_FUNC_NONE}, - - {PIN_P7_0, "P7_0", PIN_PHY_FUNC_NONE}, - {PIN_P7_1, "P7_1", PIN_PHY_FUNC_NONE}, - {PIN_P7_2, "P7_2", PIN_PHY_FUNC_NONE}, - {PIN_P7_3, "P7_3", PIN_PHY_FUNC_NONE}, - {PIN_P7_4, "P7_4", PIN_PHY_FUNC_NONE}, - {PIN_P7_5, "P7_5", PIN_PHY_FUNC_NONE}, - {PIN_P7_6, "P7_6", PIN_PHY_FUNC_NONE}, - {PIN_P7_7, "P7_7", PIN_PHY_FUNC_NONE}, - - {PIN_P8_0, "P8_0", PIN_PHY_FUNC_NONE}, - {PIN_P8_1, "P8_1", PIN_PHY_FUNC_NONE}, - {PIN_P8_2, "P8_2", PIN_PHY_FUNC_NONE}, - {PIN_P8_3, "P8_3", PIN_PHY_FUNC_NONE}, - {PIN_P8_4, "P8_4", PIN_PHY_FUNC_NONE}, - {PIN_P8_5, "P8_5", PIN_PHY_FUNC_NONE}, - {PIN_P8_6, "P8_6", PIN_PHY_FUNC_NONE}, - {PIN_P8_7, "P8_7", PIN_PHY_FUNC_NONE}, - - {PIN_P9_0, "P9_0", PIN_PHY_FUNC_NONE}, - {PIN_P9_1, "P9_1", PIN_PHY_FUNC_NONE}, - {PIN_P9_2, "P9_2", PIN_PHY_FUNC_NONE}, - {PIN_P9_3, "P9_3", PIN_PHY_FUNC_NONE}, - {PIN_P9_4, "P9_4", PIN_PHY_FUNC_NONE}, - {PIN_P9_5, "P9_5", PIN_PHY_FUNC_NONE}, - {PIN_P9_6, "P9_6", PIN_PHY_FUNC_NONE}, - {PIN_P9_7, "P9_7", PIN_PHY_FUNC_NONE}, - - {PIN_P10_0, "P10_0", PIN_PHY_FUNC_NONE}, - {PIN_P10_1, "P10_1", PIN_PHY_FUNC_NONE}, - {PIN_P10_2, "P10_2", PIN_PHY_FUNC_NONE}, - {PIN_P10_3, "P10_3", PIN_PHY_FUNC_NONE}, - {PIN_P10_4, "P10_4", PIN_PHY_FUNC_NONE}, - {PIN_P10_5, "P10_5", PIN_PHY_FUNC_NONE}, - {PIN_P10_6, "P10_6", PIN_PHY_FUNC_NONE}, - {PIN_P10_7, "P10_7", PIN_PHY_FUNC_NONE}, - - {PIN_P11_0, "P11_0", PIN_PHY_FUNC_NONE}, - {PIN_P11_1, "P11_1", PIN_PHY_FUNC_NONE}, - {PIN_P11_2, "P11_2", PIN_PHY_FUNC_NONE}, - {PIN_P11_3, "P11_3", PIN_PHY_FUNC_NONE}, - {PIN_P11_4, "P11_4", PIN_PHY_FUNC_NONE}, - {PIN_P11_5, "P11_5", PIN_PHY_FUNC_NONE}, - {PIN_P11_6, "P11_6", PIN_PHY_FUNC_NONE}, - {PIN_P11_7, "P11_7", PIN_PHY_FUNC_NONE}, - - {PIN_P12_0, "P12_0", PIN_PHY_FUNC_NONE}, - {PIN_P12_1, "P12_1", PIN_PHY_FUNC_NONE}, - {PIN_P12_2, "P12_2", PIN_PHY_FUNC_NONE}, - {PIN_P12_3, "P12_3", PIN_PHY_FUNC_NONE}, - {PIN_P12_4, "P12_4", PIN_PHY_FUNC_NONE}, - {PIN_P12_5, "P12_5", PIN_PHY_FUNC_NONE}, - {PIN_P12_6, "P12_6", PIN_PHY_FUNC_NONE}, - {PIN_P12_7, "P12_7", PIN_PHY_FUNC_NONE}, - - {PIN_P13_0, "P13_0", PIN_PHY_FUNC_NONE}, - {PIN_P13_1, "P13_1", PIN_PHY_FUNC_NONE}, - {PIN_P13_2, "P13_2", PIN_PHY_FUNC_NONE}, - {PIN_P13_3, "P13_3", PIN_PHY_FUNC_NONE}, - {PIN_P13_4, "P13_4", PIN_PHY_FUNC_NONE}, - {PIN_P13_5, "P13_5", PIN_PHY_FUNC_NONE}, - {PIN_P13_6, "P13_6", PIN_PHY_FUNC_NONE}, - {PIN_P13_7, "P13_7", PIN_PHY_FUNC_NONE}, - - {PIN_USBDP, "USBDP", PIN_PHY_FUNC_NONE}, - {PIN_USBDM, "USBDM", PIN_PHY_FUNC_NONE} -};*/ // Function definitions // helper function to translate pin_name(string) into machine_pin_io_obj_t index.