]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - src/adafruit_blinka/microcontroller/stm32/pin.py
Moved ports declarations into microcontroller.pin package, and used pin references...
[Adafruit_Blinka-hackapet.git] / src / adafruit_blinka / microcontroller / stm32 / pin.py
index 711383a709f39ebbd8091feab8329d26a287b3c3..3f46781bf36f0b319f083a1fc1acb2da25d44044 100644 (file)
@@ -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),
+)
+