summaryrefslogtreecommitdiff
path: root/src/megametrum-v0.1/ao_pins.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/megametrum-v0.1/ao_pins.h')
-rw-r--r--src/megametrum-v0.1/ao_pins.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/megametrum-v0.1/ao_pins.h b/src/megametrum-v0.1/ao_pins.h
index e200a692..46098d34 100644
--- a/src/megametrum-v0.1/ao_pins.h
+++ b/src/megametrum-v0.1/ao_pins.h
@@ -182,4 +182,13 @@ struct ao_adc {
#define AO_MS5607_CS_MASK (1 << AO_MS5607_CS)
#define AO_MS5607_SPI_INDEX (STM_SPI_INDEX(1))
+/*
+ * SPI Flash memory
+ */
+
+#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_BUS STM_SPI_INDEX(2)
+
#endif /* _AO_PINS_H_ */