c214c9e648
This commit adds support for generating named pin mappings for all pins including CPU, board-defined, LED and externally controlled pins. CPU pins are mapped to `pin_GPIO<n>`, externally-controlled pins are mapped to `pin_EXT_GPIO<n>`, and defined conditionally (up to 10 pins, and can be expanded in the future), and they are non-const to allow `machine-pin.c` to write the pin object fields. Both CPU and externally controlled pins are generated even if there's no board CSV file; if one exists it will just be added to board pins.
32 lines
2.1 KiB
Plaintext
32 lines
2.1 KiB
Plaintext
Pin,AF1,AF2,AF3,AF4,AF5,AF6,AF7,AF8,AF9
|
|
GPIO0,SPI0_RX,UART0_TX,I2C0_SDA,PWM0_A,SIO,PIO0,PIO1,,USB_OVCUR_DET
|
|
GPIO1,SPI0_CS,UART0_RX,I2C0_SCL,PWM0_B,SIO,PIO0,PIO1,,USB_VBUS_DET
|
|
GPIO2,SPI0_SCK,UART0_CTS,I2C1_SDA,PWM1_A,SIO,PIO0,PIO1,,USB_VBUS_EN
|
|
GPIO3,SPI0_TX,UART0_RTS,I2C1_SCL,PWM1_B,SIO,PIO0,PIO1,,USB_OVCUR_DET
|
|
GPIO4,SPI0_RX,UART1_TX,I2C0_SDA,PWM2_A,SIO,PIO0,PIO1,,USB_VBUS_DET
|
|
GPIO5,SPI0_CS,UART1_RX,I2C0_SCL,PWM2_B,SIO,PIO0,PIO1,,USB_VBUS_EN
|
|
GPIO6,SPI0_SCK,UART1_CTS,I2C1_SDA,PWM3_A,SIO,PIO0,PIO1,,USB_OVCUR_DET
|
|
GPIO7,SPI0_TX,UART1_RTS,I2C1_SCL,PWM3_B,SIO,PIO0,PIO1,,USB_VBUS_DET
|
|
GPIO8,SPI1_RX,UART1_TX,I2C0_SDA,PWM4_A,SIO,PIO0,PIO1,,USB_VBUS_EN
|
|
GPIO9,SPI1_CS,UART1_RX,I2C0_SCL,PWM4_B,SIO,PIO0,PIO1,,USB_OVCUR_DET
|
|
GPIO10,SPI1_SCK,UART1_CTS,I2C1_SDA,PWM5_A,SIO,PIO0,PIO1,,USB_VBUS_DET
|
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