altos: Fix telemega v5.0 CS_FLASH pin
authorKeith Packard <keithp@keithp.com>
Fri, 17 Sep 2021 21:24:21 +0000 (14:24 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 17 Sep 2021 21:24:21 +0000 (14:24 -0700)
It's on GPIOD 10, not GPIOD 3.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/telemega-v5.0/ao_pins.h

index 9946112615f28c054fc0bcfd7d17226596244295..9d65684df490b29f6d33dc43a066bec7c031ce22 100644 (file)
@@ -291,7 +291,7 @@ struct ao_adc {
 
 #define M25_MAX_CHIPS          1
 #define AO_M25_SPI_CS_PORT     (&stm_gpiod)
-#define AO_M25_SPI_CS_MASK     (1 << 3)
+#define AO_M25_SPI_CS_MASK     (1 << 10)
 #define AO_M25_SPI_BUS         AO_SPI_2_PB13_PB14_PB15
 
 /*