altos/telegps: Hook up cc115l driver
[fw/altos] / src / telegps-v0.1 / ao_pins.h
index 77b2373dad70ce31a6f1fa9891ac4e2235ecde3e..46d0b9f2186f5397491666b40da83b45833d20ee 100644 (file)
 #define AO_MONITOR_LED         AO_LED_GREEN
 
 /*
- * Radio (cc115)
+ * Radio (cc115l)
  */
 
 /* gets pretty close to 434.550 */
 
-#define AO_RADIO_CAL_DEFAULT   0x6ca333
+#define AO_RADIO_CAL_DEFAULT   0x10b6a5
 
 #define AO_FEC_DEBUG           0
-#define AO_CC1120_SPI_CS_PORT  (&stm_gpioa)
-#define AO_CC1120_SPI_CS_PIN   0
-#define AO_CC1120_SPI_BUS      AO_SPI_2_PB13_PB14_PB15
-#define AO_CC1120_SPI          stm_spi2
+#define AO_CC115L_SPI_CS_PORT  (&stm_gpiob)
+#define AO_CC115L_SPI_CS_PIN   12
+#define AO_CC115L_SPI_BUS      AO_SPI_2_PB13_PB14_PB15
+#define AO_CC115L_SPI          stm_spi2
 
-#define AO_CC1120_INT_PORT     (&stm_gpioc)
-#define AO_CC1120_INT_PIN      13
+#define AO_CC115L_INT_PORT     (&stm_gpioa)
+#define AO_CC115L_INT_PIN      (9)
 
-#define AO_CC1120_MCU_WAKEUP_PORT      (&stm_gpioc)
-#define AO_CC1120_MCU_WAKEUP_PIN       (0)
+#define AO_CC115L_MCU_WAKEUP_PORT      (&stm_gpioa)
+#define AO_CC115L_MCU_WAKEUP_PIN       (10)
 
-#define AO_CC1120_INT_GPIO     2
-#define AO_CC1120_INT_GPIO_IOCFG       CC1120_IOCFG2
+#define AO_CC115L_INT_GPIO     2
+#define AO_CC115L_INT_GPIO_IOCFG       CC115L_IOCFG2
 
-#define AO_CC1120_MARC_GPIO    3
-#define AO_CC1120_MARC_GPIO_IOCFG      CC1120_IOCFG3
+#define AO_CC115L_MARC_GPIO    0
+#define AO_CC115L_MARC_GPIO_IOCFG      CC115L_IOCFG0
 
-/*
- * Profiling Viterbi decoding
- */
-
-#ifndef AO_PROFILE
-#define AO_PROFILE             0
-#endif
 
 #endif /* _AO_PINS_H_ */