altos: Use new USB driver in megametrum-v0.1 product
[fw/altos] / src / megametrum-v0.1 / ao_pins.h
index e200a692eb4cb56e6d04ce4ff3d2360050367264..e4e5def64ef8c59e05463f77423a1dfd3dcdb392 100644 (file)
@@ -21,7 +21,7 @@
 /* 8MHz High speed external crystal */
 #define AO_HSE                 8000000
 
-/* PLLVCO = 96MHz (so that USB will work*/
+/* PLLVCO = 96MHz (so that USB will work*/
 #define AO_PLLMUL              12
 #define AO_RCC_CFGR_PLLMUL     (STM_RCC_CFGR_PLLMUL_12)
 
@@ -61,8 +61,8 @@
 #define ao_gps_putchar         ao_serial3_putchar
 #define ao_gps_set_speed       ao_serial3_set_speed
 
-#define HAS_USB                        0
-#define HAS_BEEP               0
+#define HAS_USB                        1
+#define HAS_BEEP               1
 
 #define HAS_SPI_1              1
 #define SPI_1_PA5_PA6_PA7      1
@@ -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_ */