diff options
| author | Keith Packard <keithp@keithp.com> | 2013-03-24 23:52:14 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2013-03-24 23:52:14 -0700 | 
| commit | 6fe1e32f5361e901b88b63a30f070e67d460ada1 (patch) | |
| tree | b96529f7f01a3a7bc93f7278a5d7e0b74a93c288 /src/telegps-v0.1/ao_pins.h | |
| parent | 4ddfb3ea07c2073f8c4d79feaf262c9fb910cfce (diff) | |
altos/telegps: Hook up cc115l driver
Doesn't actually do anything yet, but should initialize the chip at least
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/telegps-v0.1/ao_pins.h')
| -rw-r--r-- | src/telegps-v0.1/ao_pins.h | 35 | 
1 files changed, 14 insertions, 21 deletions
| diff --git a/src/telegps-v0.1/ao_pins.h b/src/telegps-v0.1/ao_pins.h index 77b2373d..46d0b9f2 100644 --- a/src/telegps-v0.1/ao_pins.h +++ b/src/telegps-v0.1/ao_pins.h @@ -122,37 +122,30 @@  #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_ */ | 
