From 4cb051d8ec1cdd7fd9cb87129c7425feb21f284e Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 12 Nov 2022 19:36:10 -0800 Subject: [PATCH] samd21: PA20 maps to SERCOM3.2 not SERCOM3.3 Flip the DIPO config around for AO_SPI_3_PA22_PA23_PA20 Signed-off-by: Keith Packard --- src/samd21/ao_arch_funcs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/samd21/ao_arch_funcs.h b/src/samd21/ao_arch_funcs.h index 141a9a20..beb8d126 100644 --- a/src/samd21/ao_arch_funcs.h +++ b/src/samd21/ao_arch_funcs.h @@ -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 -- 2.30.2