samd21: PA20 maps to SERCOM3.2 not SERCOM3.3
authorKeith Packard <keithp@keithp.com>
Sun, 13 Nov 2022 03:36:10 +0000 (19:36 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 13 Nov 2022 03:36:10 +0000 (19:36 -0800)
Flip the DIPO config around for AO_SPI_3_PA22_PA23_PA20

Signed-off-by: Keith Packard <keithp@keithp.com>
src/samd21/ao_arch_funcs.h

index 141a9a205b7b32a144902d3912e76b6af9a85ed0..beb8d1262c796b47346a58999d03c85a788eca56 100644 (file)
@@ -190,11 +190,11 @@ ao_enable_cs(struct samd21_port *port, uint8_t pin)
 /*
  * PA22 SERCOM3.0 -> MOSI      (DOPO 0)
  * PA23 SERCOM3.1 -> SCLK      (DOPO 0)
- * PA20 SERCOM3.3 -> MISO      (DIPO 3)
+ * PA20 SERCOM3.2 -> MISO      (DIPO 2)
  */
 #define AO_SPI_3_PA22_PA23_PA20        (3 | AO_SPI_CONFIG_0 |          \
                                 AO_SPI_DOPO_MOSI_0_SCLK_1 |    \
-                                AO_SPI_DIPO_MISO_3)
+                                AO_SPI_DIPO_MISO_2)
 #endif /* HAS_SPI_3 */
 
 #if HAS_SPI_4