summaryrefslogtreecommitdiff
path: root/src/telegps-v0.1
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-03-29 17:05:36 -0700
committerKeith Packard <keithp@keithp.com>2013-03-29 17:05:36 -0700
commit93a9aa703a0173e13b327ed432e6d52e90ebfa1b (patch)
treeba7136232c7146abc43132a73683df7a4a966c58 /src/telegps-v0.1
parent9aeed244879f90b5b6dab1c7ca095cc001b03fe5 (diff)
altos: Get CC115L radio working.
This involved figuring out which GPIO signal would reliably indicate that the transmitter was finished; I ended up using the PA_PD bit for this. This also converts all of the radio users to the long packet support as the CC115L has only a 64-byte fifo, not large enough to hold either an RDF tone or a regular AltOS telemetry packet. This also renames the public API for sending APRS packets from ao_radio_send_lots to ao_radio_send_aprs, which is at least more accurate. The workings of that API haven't changed, just the name. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/telegps-v0.1')
-rw-r--r--src/telegps-v0.1/Makefile1
-rw-r--r--src/telegps-v0.1/ao_pins.h16
2 files changed, 6 insertions, 11 deletions
diff --git a/src/telegps-v0.1/Makefile b/src/telegps-v0.1/Makefile
index c8ab8a9a..ae36c9fd 100644
--- a/src/telegps-v0.1/Makefile
+++ b/src/telegps-v0.1/Makefile
@@ -14,7 +14,6 @@ INC = \
ao_task.h \
ao_whiten.h \
ao_cc115l.h \
- ao_rf_cc115l.h \
ao_fec.h \
stm32l.h \
Makefile
diff --git a/src/telegps-v0.1/ao_pins.h b/src/telegps-v0.1/ao_pins.h
index 09574568..eea050c9 100644
--- a/src/telegps-v0.1/ao_pins.h
+++ b/src/telegps-v0.1/ao_pins.h
@@ -140,17 +140,13 @@
#define AO_CC115L_SPI_BUS AO_SPI_2_PB13_PB14_PB15
#define AO_CC115L_SPI stm_spi2
-#define AO_CC115L_INT_PORT (&stm_gpioa)
-#define AO_CC115L_INT_PIN (9)
+#define AO_CC115L_FIFO_INT_GPIO_IOCFG CC115L_IOCFG2
+#define AO_CC115L_FIFO_INT_PORT (&stm_gpioa)
+#define AO_CC115L_FIFO_INT_PIN (9)
-#define AO_CC115L_MCU_WAKEUP_PORT (&stm_gpioa)
-#define AO_CC115L_MCU_WAKEUP_PIN (10)
-
-#define AO_CC115L_INT_GPIO 2
-#define AO_CC115L_INT_GPIO_IOCFG CC115L_IOCFG2
-
-#define AO_CC115L_MARC_GPIO 0
-#define AO_CC115L_MARC_GPIO_IOCFG CC115L_IOCFG0
+#define AO_CC115L_DONE_INT_GPIO_IOCFG CC115L_IOCFG0
+#define AO_CC115L_DONE_INT_PORT (&stm_gpioa)
+#define AO_CC115L_DONE_INT_PIN (10)
#define HAS_RADIO_AMP 1