altos: Start making cc1120 radio work
[fw/altos] / src / megametrum-v0.1 / ao_pins.h
index d6394d9b86e1aabd90ebdaf6bd2a1cb38f86238d..5121ad58a906e94e2a1b544f9636daa0048063fc 100644 (file)
@@ -65,6 +65,7 @@
 #define USE_INTERNAL_FLASH     0
 #define HAS_USB                        1
 #define HAS_BEEP               1
+#define HAS_RADIO              1
 
 #define HAS_SPI_1              1
 #define SPI_1_PA5_PA6_PA7      1
 #define HAS_SPI_2              1
 #define SPI_2_PB13_PB14_PB15   1
 #define SPI_2_PD1_PD3_PD4      0
+#define SPI_2_GPIO             stm_gpiob
+#define SPI_2_SCK              13
+#define SPI_2_MISO             14
+#define SPI_2_MOSI             15
 
 #define HAS_I2C_1              1
 #define I2C_1_PB8_PB9          1
@@ -81,7 +86,7 @@
 #define HAS_I2C_2              1
 #define I2C_2_PB10_PB11                1
 
-#define PACKET_HAS_SLAVE       1
+#define PACKET_HAS_SLAVE       0
 
 #define LOW_LEVEL_DEBUG                1
 
@@ -251,4 +256,6 @@ struct ao_adc {
 
 #define HAS_HIGHG_ACCEL                1
 
+#define NUM_CMDS               16
+
 #endif /* _AO_PINS_H_ */