X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka.git/blobdiff_plain/99caef4fed7582691b2b4080df7f5cbbc30befc2..978f3f7bee897e29eed6c580b717b0d7f7d5cee6:/src/adafruit_blinka/microcontroller/sama5/pin.py diff --git a/src/adafruit_blinka/microcontroller/sama5/pin.py b/src/adafruit_blinka/microcontroller/sama5/pin.py new file mode 100644 index 0000000..feb0a5f --- /dev/null +++ b/src/adafruit_blinka/microcontroller/sama5/pin.py @@ -0,0 +1,36 @@ +from adafruit_blinka.microcontroller.generic_linux.libgpiod_pin import Pin + +PD23 = Pin(119) +PD21 = Pin(117) +PD20 = Pin(116) +PD24 = Pin(120) +PD22 = Pin(118) +PD19 = Pin(115) +PA14 = Pin(14) +SPI0_SCLK = PA14 +PA15 = Pin(15) +SPI0_MOSI = PA15 +PA16 = Pin(16) +SPI0_MISO = PA16 +PD2 = Pin(98) +UART1_RX = PD2 +PD3 = Pin(99) +UART1_TX = PD3 + +PD13 = Pin(109) +PD31 = Pin(127) +PB0 = Pin(32) +PB7 = Pin(38) +PB1 = Pin(33) +PB5 = Pin(37) +PB3 = Pin(35) +PC0 = Pin(64) +TWI0_SCL = PC0 +PB31 = Pin(63) +TWI0_SDA = PB31 + +i2cPorts = ( (0, TWI0_SCL, TWI0_SDA), ) +# ordered as spiId, sckId, mosiId, misoId +spiPorts = ( (0, SPI0_SCLK, SPI0_MOSI, SPI0_MISO), ) +# ordered as uartId, txId, rxId +uartPorts = ( (1, UART1_TX, UART1_RX), )