X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/5da8051ef58b3d4f75b280b1862eb4e771438107..a8ed516cc3b6c4cdd7a346f897aa1a520071a239:/src/adafruit_blinka/microcontroller/stm32/pin.py diff --git a/src/adafruit_blinka/microcontroller/stm32/pin.py b/src/adafruit_blinka/microcontroller/stm32/pin.py index 711383a..3f46781 100644 --- a/src/adafruit_blinka/microcontroller/stm32/pin.py +++ b/src/adafruit_blinka/microcontroller/stm32/pin.py @@ -47,3 +47,21 @@ C11 = Pin('C11') C12 = Pin('C12') C13 = Pin('C13') D2 = Pin('D2') + +# ordered as spiId, sckId, mosiId, misoId +spiPorts = ((1, B13, B15, B14), (2, A5, A6, A7)) + +# ordered as uartId, txId, rxId +uartPorts = ( + (1, B6, B7), + (2, A2, A3), + (3, B10, B11), + (4, A0, A1), + (6, C6, C7), +) + +i2cPorts = ( + (1, B6, B7), + (2, B10, B11), +) +