# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""Pin definitions for the A20_OLINUXINO_LIME2."""

from adafruit_blinka.microcontroller.allwinner.a20 import pin

PA0 = pin.PA0
PA1 = pin.PA1
PA2 = pin.PA2
UART2_TX = PA2
PA3 = pin.PA3
UART2_RX = PA3
PA6 = pin.PA6
PA7 = pin.PA7
PA8 = pin.PA8
PA9 = pin.PA9
PA10 = pin.PA10
UART1_TX = PA10
PA11 = pin.PA11
UART1_RX = PA11
PA12 = pin.PA12
PA13 = pin.PA13
PA14 = pin.PA14
PA15 = pin.PA15
PA16 = pin.PA16
PA17 = pin.PA17

PB0 = pin.PB0
TWI0_SCK = PB0
SCL0 = PB0
TWI0_SCL = PB0
I2C0_SCL = PB0
PB1 = pin.PB1
TWI0_SDA = PB1
SDA0 = PB1
TWI0_SDA = PB1
SDA0 = PB1
PB2 = pin.PB2
PWM0 = PB2
PB3 = pin.PB3
IR0_TX = PB3
PB4 = pin.PB4
IR0_RX = PB4
PB5 = pin.PB5
PB6 = pin.PB6
PB7 = pin.PB7
PB8 = pin.PB8
PB12 = pin.PB12
PB13 = pin.PB13
PB18 = pin.PB18
TWI1_SCK = PB18
SCL1 = PB18
TWI_SCL1 = PB18
S2C_SCL1 = PB18
PB19 = pin.PB19
TWI1_SDA = PB19
SDA1 = PB19
TWI_SDA1 = PB19
I2C_SDA1 = PB19
PB20 = pin.PB20
TWI2_SCK = PB20
SCL = PB20
TWI_SCL2 = PB20
I2C_SCL2 = PB20
PB21 = pin.PB21
TWI2_SDA = PB21
SDA = PB21
TWI_SDA2 = PB21
I2C_SDA2 = PB21
PB22 = pin.PB22
UART0_TX = PB22
PB23 = pin.PB23
UART0_RX = PB23

PC19 = pin.PC19
SPI2_CS0 = PC19
PC20 = pin.PC20
SPI2_SCLK = PC20
PC21 = pin.PC21
SPI2_MOSI = PC21
PC22 = pin.PC22
SPI2_MISO = PC22

PG2 = pin.PG2

PH2 = pin.PH2
PH4 = pin.PH4
UART4_TX = PH4
PH5 = pin.PH5
UART4_RX = PH5
PH6 = pin.PH6
UART5_TX = PH6
PH7 = pin.PH7
UART5_RX = PH7
PH8 = pin.PH8
PH9 = pin.PH9
PH10 = pin.PH10
PH11 = pin.PH11
PH12 = pin.PH12
PH13 = pin.PH13
PH14 = pin.PH14
PH15 = pin.PH15
PH16 = pin.PH16
PH17 = pin.PH17
PH18 = pin.PH18
PH19 = pin.PH19
PH20 = pin.PH20
CAN_TX = PH20
PH21 = pin.PH21
CAN_RX = PH21
PH24 = pin.PH24

PI0 = pin.PI0
TWI3_SCK = PI0
SCL3 = PI0
PI1 = pin.PI1
TWI3_SDA = PI1
SDA3 = PI1
PI3 = pin.PI3
PWM1 = PI3
PI10 = pin.PI10
SPI0_CS0 = PI10
PI11 = pin.PI11
SPI0_SCLK = PI11
PI12 = pin.PI12
SPI0_MOSI = PI12
UART6_TX = PI12
PI13 = pin.PI13
SPI0_MISO = PI13
UART6_RX = PI13
PI14 = pin.PI14
SPI0_CS1 = PI14
PI16 = pin.PI16
UART2_RTS = PI16
PI17 = pin.PI17
UART2_CTS = PI17
PI18 = pin.PI18
UART2_TX = PI18
PI19 = pin.PI19
UART2_RX = PI19
PI20 = pin.PI20
UART7_TX = PI20
PI21 = pin.PI21
UART7_RX = PI21
