altos/telegps: Hook up cc115l driver
authorKeith Packard <keithp@keithp.com>
Mon, 25 Mar 2013 06:52:14 +0000 (23:52 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 25 Mar 2013 06:52:14 +0000 (23:52 -0700)
Doesn't actually do anything yet, but should initialize the chip at least

Signed-off-by: Keith Packard <keithp@keithp.com>
src/telegps-v0.1/Makefile
src/telegps-v0.1/ao_pins.h
src/telegps-v0.1/ao_telegps.c

index 48caee4d1232bed2318f49281e1b1d4e6836f7bf..26d9eaa06b5ae8c97579eb8b766e30978c869186 100644 (file)
@@ -13,6 +13,8 @@ INC = \
        ao_product.h \
        ao_task.h \
        ao_whiten.h \
+       ao_cc115l.h \
+       ao_fec.h \
        stm32l.h \
        Makefile
 
@@ -44,7 +46,9 @@ ALTOS_SRC = \
        ao_usb_stm.c \
        ao_exti_stm.c \
        ao_serial_stm.c \
-       ao_gps_skytraq.c
+       ao_gps_skytraq.c \
+       ao_cc115l.c \
+       ao_fec_tx.c
 
 PRODUCT=TeleGPS-v0.1
 PRODUCT_DEF=-DTELEGPS
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_ */
index 9865674ddbb98db8aee27b3fc62c66505df609f2..fdf365e3d279f94ed581aea3359af4ad26eb25a2 100644 (file)
@@ -41,11 +41,7 @@ main(void)
        ao_cmd_init();
 
        ao_usb_init();
-//     ao_radio_init();
-//     ao_monitor_init();
-//     ao_rssi_init(AO_LED_RED);
-//     ao_packet_master_init();
-//     ao_send_packet_init();
+       ao_radio_init();
 
        ao_gps_init();