# GD32F407XX pin definitions
#
# Sources:
# - GD32F407XX Datasheet (Revision 2.5)
#
# Pin codes:
#
# - 64  pins: R
# - 100 pins: V
# - 144 pins: Z
# - 176 pins: I
#
# Memory codes:
#
# - 512Kb  Flash, 192Kb SRAM: E
# - 1024Kb Flash, 192Kb SRAM: G
# - 3072Kb Flash, 192Kb SRAM: K
#
# Copyright (c) 2021 BrainCo Inc.
# SPDX-License-Identifier: Apache 2.0

model: af

series: gd32f407

variants:
  - pincode: R
    memories: [E, G, K]
  - pincode: V
    memories: [E, G, K]
  - pincode: Z
    memories: [E, G, K]
  - pincode: I
    memories: [E, G, K]

pins:
  PA0:
    pincodes: [R, V, Z, I]
    afs:
      ADC012_IN0: ANALOG
      TIMER1_CH0: 1
      TIMER1_ETI: 1
      TIMER4_CH0: 2
      TIMER7_ETI: 3
      USART1_CTS: 7
      UART3_TX: 8
      ENET_MII_CRS: 11
      EVENTOUT: 15
  PA1:
    pincodes: [R, V, Z, I]
    afs:
      ADC012_IN1: ANALOG
      TIMER1_CH1: 1
      TIMER4_CH1: 2
      USART1_RTS: 7
      UART3_RX: 8
      ENET_MII_RX_CLK: 11
      ENET_RMII_REF_CLK: 11
      EVENTOUT: 15
  PA2:
    pincodes: [R, V, Z, I]
    afs:
      ADC012_IN2: ANALOG
      TIMER1_CH2: 1
      TIMER4_CH2: 2
      TIMER8_CH0: 3
      I2S_CKIN: 5
      USART1_TX: 7
      ENET_MDIO: 11
      EVENTOUT: 15
  PA3:
    pincodes: [R, V, Z, I]
    afs:
      ADC012_IN3: ANALOG
      TIMER1_CH3: 1
      TIMER4_CH3: 2
      TIMER8_CH1: 3
      I2S1_MCK: 5
      USART1_RX: 7
      USBHS_ULPI_D0: 10
      ENET_MII_COL: 11
      EVENTOUT: 15
  PA4:
    pincodes: [R, V, Z, I]
    afs:
      ADC01_IN4: ANALOG
      DAC_OUT0: ANALOG
      SPI0_NSS: 5
      SPI2_NSS: 6
      I2S2_WS: 6
      USART1_CK: 7
      USBHS_SOF: 12
      DCI_HSYNC: 13
      EVENTOUT: 15
  PA5:
    pincodes: [R, V, Z, I]
    afs:
      ADC01_IN5: ANALOG
      DAC_OUT1: ANALOG
      TIMER1_CH0: 1
      TIMER1_ETI: 1
      TIMER7_CH0_ON: 3
      SPI0_SCK: 5
      USBHS_ULPI_CK: 10
      EVENTOUT: 15
  PA6:
    pincodes: [R, V, Z, I]
    afs:
      ADC01_IN6: ANALOG
      TIMER0_BRKIN: 1
      TIMER2_CH0: 2
      TIMER7_BRKIN: 3
      SPI0_MISO: 5
      I2S1_MCK: 6
      TIMER12_CH0: 9
      SDIO_CMD: 12
      DCI_PIXCLK: 13
      EVENTOUT: 15
  PA7:
    pincodes: [R, V, Z, I]
    afs:
      ADC01_IN7: ANALOG
      TIMER0_CH0_ON: 1
      TIMER2_CH1: 2
      TIMER7_CH0_ON: 3
      SPI0_MOSI: 5
      TIMER13_CH0: 9
      ENET_MII_RX_DV: 11
      ENET_RMII_CRS_DV: 11
      EXMC_SD_NWE: 12
      EVENTOUT: 15
  PA8:
    pincodes: [R, V, Z, I]
    afs:
      CK_OUT0: 0
      TIMER0_CH0: 1
      I2C2_SCL: 4
      USART0_CK: 7
      CTC_SYNC: 9
      USBFS_SOF: 10
      SDIO_D1: 12
      EVENTOUT: 15
  PA9:
    pincodes: [R, V, Z, I]
    afs:
      TIMER0_CH1: 1
      I2C2_SMBA: 4
      SPI1_SCK: 5
      I2S1_CK: 5
      USART0_TX: 7
      SDIO_D2: 12
      DCI_D0: 13
      EVENTOUT: 15
  PA10:
    pincodes: [R, V, Z, I]
    afs:
      TIMER0_CH2: 1
      I2C2_TXFRAME: 4
      USART0_RX: 7
      USBFS_ID: 10
      DCI_D1: 13
      EVENTOUT: 15
  PA11:
    pincodes: [R, V, Z, I]
    afs:
      TIMER0_CH3: 1
      USART0_CTS: 7
      USART5_TX: 8
      CAN0_RX: 9
      USBFS_DM: 10
      EVENTOUT: 15
  PA12:
    pincodes: [R, V, Z, I]
    afs:
      TIMER0_ETI: 1
      USART0_RTS: 7
      USART5_RX: 8
      CAN0_TX: 9
      USBFS_DP: 10
      EVENTOUT: 15
  PA13:
    pincodes: [R, V, Z, I]
    afs:
      JTMS: 0
      SWDIO: 0
      EVENTOUT: 15
  PA14:
    pincodes: [R, V, Z, I]
    afs:
      JTCK: 0
      SWCLK: 0
      EVENTOUT: 15
  PA15:
    pincodes: [R, V, Z, I]
    afs:
      JTDI: 0
      TIMER1_CH0: 1
      TIMER1_ETI: 1
      SPI0_NSS: 5
      SPI2_NSS: 6
      I2S2_WS: 6
      USART0_TX: 7
      EVENTOUT: 15
  PB0:
    pincodes: [R, V, Z, I]
    afs:
      ADC01_IN8: ANALOG
      TIMER0_CH1_ON: 1
      TIMER2_CH2: 2
      TIMER7_CH1_ON: 3
      SPI2_MOSI: 7
      I2S2_SD: 7
      USBHS_ULPI_D1: 10
      ENET_MII_RXD2: 11
      SDIO_D1: 12
      EVENTOUT: 15
  PB1:
    pincodes: [R, V, Z, I]
    afs:
      ADC01_IN9: ANALOG
      TIMER0_CH2_ON: 1
      TIMER2_CH3: 2
      TIMER7_CH2_ON: 3
      USBHS_ULPI_D2: 10
      ENET_MII_RXD3: 11
      SDIO_D2: 12
      EVENTOUT: 15
  PB2:
    pincodes: [R, V, Z, I]
    afs:
      TIMER1_CH3: 1
      SPI2_MOSI: 7
      I2S2_SD: 7
      USBHS_ULPI_D4: 10
      SDIO_CK: 12
      EVENTOUT: 15
  PB3:
    pincodes: [R, V, Z, I]
    afs:
      JTDO: 0
      TRACESWO: 0
      TIMER1_CH1: 1
      SPI0_SCK: 5
      SPI2_SCK: 6
      I2S2_CK: 6
      USART0_RX: 7
      I2C1_SDA: 9
      EVENTOUT: 15
  PB4:
    pincodes: [R, V, Z, I]
    afs:
      NJTRST: 0
      TIMER2_CH0: 2
      I2C0_TXFRAME: 4
      SPI0_MISO: 5
      SPI2_MISO: 6
      I2S2_ADD_SD: 7
      I2C2_SDA: 9
      SDIO_D0: 12
      EVENTOUT: 15
  PB5:
    pincodes: [R, V, Z, I]
    afs:
      TIMER2_CH1: 2
      I2C0_SMBA: 4
      SPI0_MOSI: 5
      SPI2_MOSI: 6
      I2S2_SD: 6
      CAN1_RX: 9
      USBHS_ULPI_D7: 10
      ENET_PPS_OUT: 11
      EXMC_SDCKE1: 12
      DCI_D10: 13
      EVENTOUT: 15
  PB6:
    pincodes: [R, V, Z, I]
    afs:
      TIMER3_CH0: 2
      I2C0_SCL: 4
      USART0_TX: 7
      CAN1_TX: 9
      EXMC_SDNE1: 11
      DCI_D5: 13
      EVENTOUT: 15
  PB7:
    pincodes: [R, V, Z, I]
    afs:
      TIMER3_CH1: 2
      I2C0_SDA: 4
      USART0_RX: 7
      EXMC_NL: 12
      EXMC_NADV: 12
      DCI_VSYNC: 13
      EVENTOUT: 15
  PB8:
    pincodes: [R, V, Z, I]
    afs:
      TIMER1_CH0: 1
      TIMER1_ETI: 1
      TIMER3_CH2: 2
      TIMER9_CH0: 3
      I2C0_SCL: 4
      CAN0_RX: 9
      SDIO_D4: 12
      ENET_MII_TXD3: 11
      DCI_D6: 13
      EVENTOUT: 15
  PB9:
    pincodes: [R, V, Z, I]
    afs:
      TIMER1_CH1: 1
      TIMER3_CH3: 2
      TIMER10_CH0: 3
      I2C0_SDA: 4
      SPI1_NSS: 5
      I2S1_WS: 5
      CAN0_TX: 9
      SDIO_D5: 12
      ENET_MII_RX_ER: 1
      DCI_D7: 13
      EVENTOUT: 15
  PB10:
    pincodes: [R, V, Z, I]
    afs:
      TIMER1_CH2: 1
      I2C1_SCL: 4
      SPI1_SCK: 5
      I2S1_CK: 5
      I2S2_MCK: 6
      USART2_TX: 7
      USBHS_ULPI_D3: 10
      ENET_MII_TX_EN: 11
      ENET_RMII_TX_EN: 11
      SDIO_D7: 12
      EVENTOUT: 15
  PB11:
    pincodes: [R, V, Z, I]
    afs:
      TIMER1_CH3: 1
      I2C1_SDA: 4
      I2S_CKIN: 5
      USART2_RX: 7
      USBHS_ULPI_D4: 10
      ENET_MII_TXD0: 11
      ENET_RMII_TXD0: 11
      EVENTOUT: 15
  PB12:
    pincodes: [R, V, Z, I]
    afs:
      TIMER0_BRKIN: 1
      I2C1_SMBA: 4
      SPI1_NSS: 5
      I2S1_WS: 5
      USART2_CK: 7
      CAN1_RX: 9
      USBHS_ULPI_D5: 10
      ENET_MII_TXD1: 11
      ENET_RMII_TXD1: 11
      USBHS_ID: 12
      EVENTOUT: 15
  PB13:
    pincodes: [R, V, Z, I]
    afs:
      TIMER0_CH0_ON: 1
      I2C1_TXFRAME: 4
      SPI1_SCK: 5
      I2S1_CK: 5
      USART2_CTS: 7
      CAN1_TX: 9
      USBHS_ULPI_D6: 10
      EVENTOUT: 15
  PB14:
    pincodes: [R, V, Z, I]
    afs:
      TIMER0_CH1_ON: 1
      TIMER7_CH1_ON: 3
      SPI1_MISO: 5
      I2S1_ADD_SD: 6
      USART2_RTS: 7
      TIMER11_CH0: 9
      USBHS_DM: 12
      EVENTOUT: 15
  PB15:
    pincodes: [R, V, Z, I]
    afs:
      RTC_REFIN: 0
      TIMER0_CH2_ON: 1
      TIMER7_CH2_ON: 3
      SPI1_MOSI: 5
      I2S1_SD: 5
      TIMER11_CH1: 9
      USBHS_DP: 12
      EVENTOUT: 15
  PC0:
    pincodes: [R, V, Z, I]
    afs:
      ADC012_IN10: ANALOG
      USBHS_ULPI_STP: 10
      EXMC_SDNWE: 12
      EVENTOUT: 15
  PC1:
    pincodes: [R, V, Z, I]
    afs:
      ADC012_IN11: ANALOG
      SPI2_MOSI: 5
      I2S2_SD: 5
      SPI1_MOSI: 7
      I2S1_SD: 7
      ENET_MDC: 11
      EVENTOUT: 15
  PC2:
    pincodes: [R, V, Z, I]
    afs:
      ADC012_IN12: ANALOG
      SPI1_MISO: 5
      I2S1_ADD_SD: 6
      USBHS_ULPI_DIR: 10
      ENET_MII_TXD2: 11
      EXMC_SDNE0: 12
      EVENTOUT: 15
  PC3:
    pincodes: [R, V, Z, I]
    afs:
      ADC012_IN13: ANALOG
      SPI1_MOSI: 5
      I2S1_SD: 5
      USBHS_ULPI_NXT: 10
      ENET_MII_TX_CLK: 11
      EXMC_SDCKE0: 12
      EVENTOUT: 15
  PC4:
    pincodes: [R, V, Z, I]
    afs:
      ADC01_IN14: ANALOG
      ENET_MII_RXD0: 11
      ENET_RMII_RXD0: 11
      EXMC_SDNE0: 12
      EVENTOUT: 15
  PC5:
    pincodes: [R, V, Z, I]
    afs:
      ADC01_IN15: ANALOG
      USART2_RX: 7
      ENET_MII_RXD1: 11
      ENET_RMII_RXD1: 11
      EXMC_SDCKE0: 12
      EVENTOUT: 15
  PC6:
    pincodes: [R, V, Z, I]
    afs:
      TIMER2_CH0: 2
      TIMER7_CH0: 3
      I2S1_MCK: 5
      USART5_TX: 8
      SDIO_D6: 12
      DCI_D0: 13
      EVENTOUT: 15
  PC7:
    pincodes: [R, V, Z, I]
    afs:
      TIMER2_CH1: 2
      TIMER7_CH1: 3
      SPI1_SCK: 5
      I2S1_CK: 5
      I2S2_MCK: 6
      USART5_RX: 8
      SDIO_D7: 12
      DCI_D1: 13
      EVENTOUT: 15
  PC8:
    pincodes: [R, V, Z, I]
    afs:
      TRACED0: 0
      TIMER2_CH2: 2
      TIMER7_CH2: 3
      USART5_CK: 8
      SDIO_D0: 12
      DCI_D2: 13
      EVENTOUT: 15
  PC9:
    pincodes: [R, V, Z, I]
    afs:
      CK_OUT1: 0
      TIMER2_CH3: 2
      TIMER7_CH3: 3
      I2C2_SDA: 4
      I2S_CKIN: 5
      SDIO_D1: 12
      DCI_D3: 13
      EVENTOUT: 15
  PC10:
    pincodes: [R, V, Z, I]
    afs:
      SPI2_SCK: 6
      I2S2_CK: 6
      USART2_TX: 7
      UART3_TX: 8
      SDIO_D2: 12
      DCI_D8: 13
      EVENTOUT: 15
  PC11:
    pincodes: [R, V, Z, I]
    afs:
      I2S2_ADD_SD: 5
      SPI2_MISO: 6
      USART2_RX: 7
      UART3_RX: 8
      SDIO_D3: 12
      DCI_D4: 13
      EVENTOUT: 15
  PC12:
    pincodes: [R, V, Z, I]
    afs:
      I2C1_SDA: 4
      SPI2_MOSI: 6
      I2S2_SD: 6
      USART2_CK: 7
      UART4_TX: 8
      SDIO_CK: 12
      DCI_D9: 13
      EVENTOUT: 15
  PC13:
    pincodes: [R, V, Z, I]
    afs:
      EVENTOUT: 15
  PC14:
    pincodes: [R, V, Z, I]
    afs:
      EVENTOUT: 15
  PC15:
    pincodes: [R, V, Z, I]
    afs:
      EVENTOUT: 15
  PD0:
    pincodes: [V, Z, I]
    afs:
      SPI2_MOSI: 6
      I2S2_SD: 6
      CAN0_RX: 9
      EXMC_D2: 12
      EVENTOUT: 15
  PD1:
    pincodes: [V, Z, I]
    afs:
      SPI1_NSS: 7
      I2S1_WS: 7
      CAN0_TX: 9
      EXMC_D3: 12
      EVENTOUT: 15
  PD2:
    pincodes: [R, V, Z, I]
    afs:
      TIMER2_ETI: 2
      UART4_RX: 8
      SDIO_CMD: 12
      DCI_D11: 13
      EVENTOUT: 15
  PD3:
    pincodes: [V, Z, I]
    afs:
      TRACED1: 0
      SPI1_SCK: 5
      I2S1_CK: 5
      USART1_CTS: 7
      EXMC_CLK: 12
      DCI_D5: 13
      EVENTOUT: 15
  PD4:
    pincodes: [V, Z, I]
    afs:
      USART1_RTS: 7
      EXMC_NOE: 12
      EVENTOUT: 15
  PD5:
    pincodes: [V, Z, I]
    afs:
      USART1_TX: 7
      EXMC_NWE: 12
      EVENTOUT: 15
  PD6:
    pincodes: [V, Z, I]
    afs:
      SPI2_MOSI: 5
      I2S2_SD: 5
      USART1_RX: 7
      EXMC_NWAIT: 12
      DCI_D10: 13
      EVENTOUT: 15
  PD7:
    pincodes: [V, Z, I]
    afs:
      USART1_CK: 7
      EXMC_NE0: 12
      EXMC_NCE1: 12
      EVENTOUT: 15
  PD8:
    pincodes: [V, Z, I]
    afs:
      USART2_TX: 7
      EXMC_D13: 12
      EVENTOUT: 15
  PD9:
    pincodes: [V, Z, I]
    afs:
      USART2_RX: 7
      EXMC_D14: 12
      EVENTOUT: 15
  PD10:
    pincodes: [V, Z, I]
    afs:
      USART2_CK: 7
      EXMC_D15: 12
      EVENTOUT: 15
  PD11:
    pincodes: [V, Z, I]
    afs:
      USART2_CTS: 7
      EXMC_A16: 12
      EXMC_CLE: 12
      EVENTOUT: 15
  PD12:
    pincodes: [V, Z, I]
    afs:
      TIMER3_CH0: 2
      USART2_RTS: 7
      EXMC_A17: 12
      EXMC_ALE: 12
      EVENTOUT: 15
  PD13:
    pincodes: [V, Z, I]
    afs:
      TIMER3_CH1: 2
      EXMC_A18: 12
      EVENTOUT: 15
  PD14:
    pincodes: [V, Z, I]
    afs:
      TIMER3_CH2: 2
      EXMC_D0: 12
      EVENTOUT: 15
  PD15:
    pincodes: [V, Z, I]
    afs:
      CTC_SYNC: 0
      TIMER3_CH3: 2
      EXMC_D1: 12
      EVENTOUT: 15
  PE0:
    pincodes: [V, Z, I]
    afs:
      TIMER3_ETI: 2
      EXMC_NBL0: 12
      DCI_D2: 13
      EVENTOUT: 15
  PE1:
    pincodes: [V, Z, I]
    afs:
      TIMER0_CH1_ON: 1
      DCI_D3: 13
      EXMC_NBL1: 12
      EVENTOUT: 15
  PE2:
    pincodes: [V, Z, I]
    afs:
      TRACECK: 0
      ENET_MII_TXD3: 11
      EXMC_A23: 12
      EVENTOUT: 15
  PE3:
    pincodes: [V, Z, I]
    afs:
      TRACED0: 0
      EXMC_A19: 12
      EVENTOUT: 15
  PE4:
    pincodes: [V, Z, I]
    afs:
      TRACED1: 0
      EXMC_A20: 12
      DCI_D4: 13
      EVENTOUT: 15
  PE5:
    pincodes: [V, Z, I]
    afs:
      TRACED2: 0
      TIMER8_CH0: 3
      EXMC_A21: 12
      DCI_D6: 13
      EVENTOUT: 15
  PE6:
    pincodes: [V, Z, I]
    afs:
      TRACED3: 0
      TIMER8_CH1: 3
      EXMC_A22: 12
      DCI_D7: 13
      EVENTOUT: 15
  PE7:
    pincodes: [V, Z, I]
    afs:
      TIMER0_ETI: 0
      EXMC_D4: 12
      EVENTOUT: 15
  PE8:
    pincodes: [V, Z, I]
    afs:
      TIMER0_CH0_ON: 1
      EXMC_D5: 12
      EVENTOUT: 15
  PE9:
    pincodes: [V, Z, I]
    afs:
      TIMER0_CH0: 0
      EXMC_D6: 12
      EVENTOUT: 15
  PE10:
    pincodes: [V, Z, I]
    afs:
      TIMER0_CH1_ON: 1
      EXMC_D7: 12
      EVENTOUT: 15
  PE11:
    pincodes: [V, Z, I]
    afs:
      TIMER0_CH1: 0
      EXMC_D8: 12
      EVENTOUT: 15
  PE12:
    pincodes: [V, Z, I]
    afs:
      TIMER0_CH2_ON: 1
      EXMC_D9: 12
      EVENTOUT: 15
  PE13:
    pincodes: [V, Z, I]
    afs:
      TIMER0_CH2: 0
      EXMC_D10: 12
      EVENTOUT: 15
  PE14:
    pincodes: [V, Z, I]
    afs:
      TIMER0_CH3: 0
      EXMC_D11: 12
      EVENTOUT: 15
  PE15:
    pincodes: [V, Z, I]
    afs:
      TIMER0_BRKIN: 1
      EXMC_D12: 12
      EVENTOUT: 15
  PF0:
    pincodes: [Z, I]
    afs:
      CTC_SYNC: 0
      I2C1_SDA: 4
      EXMC_A0: 12
      EVENTOUT: 15
  PF1:
    pincodes: [Z, I]
    afs:
      I2C1_SCL: 4
      EXMC_A1: 12
      EVENTOUT: 15
  PF2:
    pincodes: [Z, I]
    afs:
      I2C1_SMBA: 4
      EXMC_A2: 12
      EVENTOUT: 15
  PF3:
    pincodes: [Z, I]
    afs:
      ADC2_IN9: ANALOG
      I2C1_TXFRAME: 4
      EXMC_A3: 12
      EVENTOUT: 15
  PF4:
    pincodes: [Z, I]
    afs:
      ADC2_IN14: ANALOG
      EXMC_A4: 12
      EVENTOUT: 15
  PF5:
    pincodes: [Z, I]
    afs:
      ADC2_IN15: ANALOG
      EXMC_A5: 12
      EVENTOUT: 15
  PF6:
    pincodes: [Z, I]
    afs:
      ADC2_IN4: ANALOG
      TIMER9_CH0: 3
      EXMC_NIORD: 12
      EVENTOUT: 15
  PF7:
    pincodes: [Z, I]
    afs:
      ADC2_IN5: ANALOG
      TIMER10_CH0: 3
      EXMC_NREG: 12
      EVENTOUT: 15
  PF8:
    pincodes: [Z, I]
    afs:
      ADC2_IN6: ANALOG
      TIMER12_CH0: 9
      EXMC_NIOWR: 12
      EVENTOUT: 15
  PF9:
    pincodes: [Z, I]
    afs:
      ADC2_IN7: ANALOG
      TIMER13_CH0: 9
      EXMC_CD: 12
      EVENTOUT: 15
  PF10:
    pincodes: [Z, I]
    afs:
      ADC2_IN8: ANALOG
      DCI_D11: 13
      EXMC_INTR: 12
      EVENTOUT: 15
  PF11:
    pincodes: [Z, I]
    afs:
      DCI_D12: 13
      EXMC_SDNRAS: 12
      EVENTOUT: 15
  PF12:
    pincodes: [Z, I]
    afs:
      EXMC_A6: 12
      EVENTOUT: 15
  PF13:
    pincodes: [Z, I]
    afs:
      EXMC_A7: 12
      EVENTOUT: 15
  PF14:
    pincodes: [Z, I]
    afs:
      EXMC_A8: 12
      EVENTOUT: 15
  PF15:
    pincodes: [Z, I]
    afs:
      EXMC_A9: 12
      EVENTOUT: 15
  PG0:
    pincodes: [Z, I]
    afs:
      EXMC_A10: 12
      EVENTOUT: 15
  PG1:
    pincodes: [Z, I]
    afs:
      EXMC_A11: 12
      EVENTOUT: 15
  PG2:
    pincodes: [Z, I]
    afs:
      EXMC_A12: 12
      EVENTOUT: 15
  PG3:
    pincodes: [Z, I]
    afs:
      EXMC_A13: 12
      EVENTOUT: 15
  PG4:
    pincodes: [Z, I]
    afs:
      EXMC_A14: 12
      EVENTOUT: 15
  PG5:
    pincodes: [Z, I]
    afs:
      EXMC_A15: 12
      EVENTOUT: 15
  PG6:
    pincodes: [Z, I]
    afs:
      EXMC_INT1: 12
      DCI_D12: 13
      EVENTOUT: 15
  PG7:
    pincodes: [Z, I]
    afs:
      USART5_CK: 8
      EXMC_INT2: 12
      DCI_D13: 13
      EVENTOUT: 15
  PG8:
    pincodes: [Z, I]
    afs:
      USART5_RTS: 8
      EXMC_SDCLK: 12
      EVENTOUT: 15
  PG9:
    pincodes: [Z, I]
    afs:
      USART5_RX: 8
      EXMC_NE1: 12
      EXMC_NCE2: 12
      DCI_VSYNC: 13
      EVENTOUT: 15
  PG10:
    pincodes: [Z, I]
    afs:
      DCI_D2: 13
      EXMC_NCE3_0: 12
      EXMC_NE2: 12
      EVENTOUT: 15
  PG11:
    pincodes: [Z, I]
    afs:
      EXMC_NCE3_1: 12
      DCI_D3: 13
      EVENTOUT: 15
  PG12:
    pincodes: [Z, I]
    afs:
      USART5_RTS: 8
      EXMC_NE3: 12
      EVENTOUT: 15
  PG13:
    pincodes: [Z, I]
    afs:
      TRACED2: 0
      USART5_CTS: 8
      EXMC_A24: 12
      EVENTOUT: 15
  PG14:
    pincodes: [Z, I]
    afs:
      TRACED3: 0
      USART5_TX: 8
      EXMC_A25: 12
      EVENTOUT: 15
  PG15:
    pincodes: [Z, I]
    afs:
      USART5_CTS: 8
      EXMC_SDNCAS: 12
      DCI_D13: 13
      EVENTOUT: 15
  PH0:
    pincodes: [I]
    afs:
      EVENTOUT: 15
  PH1:
    pincodes: [I]
    afs:
      EVENTOUT: 15
  PH2:
    pincodes: [I]
    afs:
      ENET_MII_CRS: 11
      EXMC_SDCKE0: 12
      EVENTOUT: 15
  PH3:
    pincodes: [I]
    afs:
      I2C1_TXFRAME: 4
      ENET_MII_COL: 11
      EXMC_SDNE0: 12
      EVENTOUT: 15
  PH4:
    pincodes: [I]
    afs:
      I2C1_SCL: 4
      USBHS_ULPI_NXT: 10
      EVENTOUT: 15
  PH5:
    pincodes: [I]
    afs:
      I2C1_SDA: 4
      EXMC_SDNWE: 12
      EVENTOUT: 15
  PH6:
    pincodes: [I]
    afs:
      I2C1_SMBA: 4
      TIMER11_CH0: 9
      ENET_MII_RXD2: 11
      EXMC_SDNE1: 12
      DCI_D8: 13
      EVENTOUT: 15
  PH7:
    pincodes: [I]
    afs:
      I2C2_SCL: 4
      ENET_MII_RXD3: 11
      EXMC_SDCKE1: 12
      DCI_D9: 13
      EVENTOUT: 15
  PH8:
    pincodes: [I]
    afs:
      I2C2_SDA: 4
      EXMC_D16: 12
      DCI_HSYNC: 13
      EVENTOUT: 15
  PH9:
    pincodes: [I]
    afs:
      I2C2_SMBA: 4
      TIMER11_CH1: 9
      EXMC_D17: 12
      DCI_D0: 13
      EVENTOUT: 15
  PH10:
    pincodes: [I]
    afs:
      TIMER4_CH0: 2
      I2C2_TXFRAME: 4
      EXMC_D18: 12
      DCI_D1: 13
      EVENTOUT: 15
  PH11:
    pincodes: [I]
    afs:
      TIMER4_CH1: 2
      EXMC_D19: 12
      DCI_D2: 13
      EVENTOUT: 15
  PH12:
    pincodes: [I]
    afs:
      TIMER4_CH2: 2
      EXMC_D20: 12
      DCI_D3: 13
      EVENTOUT: 15
  PH13:
    pincodes: [I]
    afs:
      TIMER7_CH0_ON: 3
      CAN0_TX: 9
      EXMC_D21: 12
      EVENTOUT: 15
  PH14:
    pincodes: [I]
    afs:
      TIMER7_CH1_ON: 3
      EXMC_D22: 12
      DCI_D4: 13
      EVENTOUT: 15
  PH15:
    pincodes: [I]
    afs:
      TIMER7_CH2_ON: 3
      EXMC_D23: 12
      DCI_D11: 13
      EVENTOUT: 15

  PI0:
    pincodes: [I]
    afs:
      TIMER4_CH3: 2
      SPI1_NSS: 5
      EXMC_D24: 12
      DCI_D13: 13
      EVENTOUT: 15
  PI1:
    pincodes: [I]
    afs:
      SPI1_SCK: 5
      EXMC_D25: 12
      DCI_D8: 13
      EVENTOUT: 15
  PI2:
    pincodes: [I]
    afs:
      TIMER7_CH3: 3
      SPI1_MISO: 5
      I2S1_ADD_SD: 6
      EXMC_D26: 12
      DCI_D9: 13
      EVENTOUT: 15
  PI3:
    pincodes: [I]
    afs:
      TIMER7_ETI: 3
      SPI1_MOSI: 5
      EXMC_D27: 12
      DCI_D10: 13
      EVENTOUT: 15
  PI4:
    pincodes: [I]
    afs:
      TIMER7_BRKIN: 3
      EXMC_NBL2: 12
      DCI_D5: 13
      EVENTOUT: 15
  PI5:
    pincodes: [I]
    afs:
      TIMER7_CH0: 3
      EXMC_NBL3: 12
      DCI_VSYNC: 13
      EVENTOUT: 15
  PI6:
    pincodes: [I]
    afs:
      TIMER7_CH1: 3
      EXMC_D28: 12
      DCI_D6: 13
      EVENTOUT: 15
  PI7:
    pincodes: [I]
    afs:
      TIMER7_CH2: 3
      EXMC_D29: 12
      DCI_D7: 13
      EVENTOUT: 15
  PI8:
    pincodes: [I]
    afs:
      EVENTOUT: 15
  PI9:
    pincodes: [I]
    afs:
      CAN0_RX: 9
      EXMC_D30: 12
      EVENTOUT: 15
  PI10:
    pincodes: [I]
    afs:
      ENET_MII_RX_ER: 11
      EXMC_D31: 12
      EVENTOUT: 15
  PI11:
    pincodes: [I]
    afs:
      USBHS_ULPI_DIR: 10
      EVENTOUT: 15
