circuitpython/ports/rp2/boards/rp2_af.csv
iabdalkader c214c9e648 rp2/machine_pin: Add support for named pins and alternate functions.
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.
2023-01-16 11:44:26 +11:00

2.1 KiB

1PinAF1AF2AF3AF4AF5AF6AF7AF8AF9
2GPIO0SPI0_RXUART0_TXI2C0_SDAPWM0_ASIOPIO0PIO1USB_OVCUR_DET
3GPIO1SPI0_CSUART0_RXI2C0_SCLPWM0_BSIOPIO0PIO1USB_VBUS_DET
4GPIO2SPI0_SCKUART0_CTSI2C1_SDAPWM1_ASIOPIO0PIO1USB_VBUS_EN
5GPIO3SPI0_TXUART0_RTSI2C1_SCLPWM1_BSIOPIO0PIO1USB_OVCUR_DET
6GPIO4SPI0_RXUART1_TXI2C0_SDAPWM2_ASIOPIO0PIO1USB_VBUS_DET
7GPIO5SPI0_CSUART1_RXI2C0_SCLPWM2_BSIOPIO0PIO1USB_VBUS_EN
8GPIO6SPI0_SCKUART1_CTSI2C1_SDAPWM3_ASIOPIO0PIO1USB_OVCUR_DET
9GPIO7SPI0_TXUART1_RTSI2C1_SCLPWM3_BSIOPIO0PIO1USB_VBUS_DET
10GPIO8SPI1_RXUART1_TXI2C0_SDAPWM4_ASIOPIO0PIO1USB_VBUS_EN
11GPIO9SPI1_CSUART1_RXI2C0_SCLPWM4_BSIOPIO0PIO1USB_OVCUR_DET
12GPIO10SPI1_SCKUART1_CTSI2C1_SDAPWM5_ASIOPIO0PIO1USB_VBUS_DET
13GPIO11SPI1_TXUART1_RTSI2C1_SCLPWM5_BSIOPIO0PIO1USB_VBUS_EN
14GPIO12SPI1_RXUART0_TXI2C0_SDAPWM6_AS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