altos: Starting to write cc1120 driver
[fw/altos] / src / megametrum-v0.1 / ao_pins.h
index 46098d34689d060af88bdb24b6b762ab2d676835..2e83de8a35e67f73126d214d5d6af229bda95d60 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)
 
 #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_EEPROM             1
+#define USE_INTERNAL_FLASH     0
+#define HAS_USB                        1
+#define HAS_BEEP               1
 
 #define HAS_SPI_1              1
 #define SPI_1_PA5_PA6_PA7      1
@@ -191,4 +193,17 @@ struct ao_adc {
 #define AO_M25_SPI_CS_MASK     (1 << 3)
 #define AO_M25_SPI_BUS         STM_SPI_INDEX(2)
 
+/*
+ * Radio (cc1120)
+ */
+
+#define AO_CC1120_SPI_CS_PORT  stm_gpioc
+#define AO_CC1120_SPI_CS_PIN   5
+#define AO_CC1120_SPI_BUS      STM_SPI_INDEX(2)
+
+#define AO_CC1120_INT_PORT     stm_gpioc
+#define AO_CC1120_INT_PIN      14
+
+#define AO_CC1120_INT_GPIO     2
+
 #endif /* _AO_PINS_H_ */