summaryrefslogtreecommitdiff
path: root/src/drivers/ao_rf_cc115l.h
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/drivers/ao_rf_cc115l.h
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/drivers/ao_rf_cc115l.h')
-rw-r--r--src/drivers/ao_rf_cc115l.h83
1 files changed, 0 insertions, 83 deletions
diff --git a/src/drivers/ao_rf_cc115l.h b/src/drivers/ao_rf_cc115l.h
deleted file mode 100644
index 50a730ab..00000000
--- a/src/drivers/ao_rf_cc115l.h
+++ /dev/null
@@ -1,83 +0,0 @@
-/***************************************************************
- * SmartRF Studio(tm) Export
- *
- * Radio register settings specifed with address, value
- *
- * RF device: CC115L
- *
- ***************************************************************/
-
-
-#if 0
- CC115L_IOCFG2, 0x2e, /* GDO2 Output Pin Configuration */
- CC115L_IOCFG1, 0x2e, /* GDO1 Output Pin Configuration */
- CC115L_IOCFG0, 0x06, /* GDO0 Output Pin Configuration */
- CC115L_FIFOTHR, 0x47, /* TX FIFO Thresholds */
- CC115L_SYNC1, 0xd3, /* Sync Word, High Byte */
- CC115L_SYNC0, 0x91, /* Sync Word, Low Byte */
- CC115L_PKTLEN, 0xff, /* Packet Length */
- CC115L_PKTCTRL0, 0x05, /* Packet Automation Control */
- CC115L_CHANNR, 0x00, /* Channel number */
- CC115L_FSCTRL0, 0x00, /* Frequency Synthesizer Control */
- CC115L_FREQ2, 0x10, /* Frequency Control Word, High Byte */
- CC115L_FREQ1, 0xb6, /* Frequency Control Word, Middle Byte */
- CC115L_FREQ0, 0xa5, /* Frequency Control Word, Low Byte */
- CC115L_MDMCFG4, 0xfa, /* Modem Configuration */
- CC115L_MDMCFG3, 0x83, /* Modem Configuration */
- CC115L_MDMCFG2, 0x13, /* Modem Configuration */
- CC115L_MDMCFG1, 0x21, /* Modem Configuration */
- CC115L_MDMCFG0, 0xf8, /* Modem Configuration */
- CC115L_DEVIATN, 0x35, /* Modem Deviation Setting */
- CC115L_MCSM1, 0x30, /* Main Radio Control State Machine Configuration */
- CC115L_MCSM0, 0x18, /* Main Radio Control State Machine Configuration */
- CC115L_RESERVED_0X20, 0xfb, /* Use setting from SmartRF Studio */
- CC115L_FREND0, 0x10, /* Front End TX Configuration */
- CC115L_FSCAL3, 0xe9, /* Frequency Synthesizer Calibration */
- CC115L_FSCAL2, 0x2a, /* Frequency Synthesizer Calibration */
- CC115L_FSCAL1, 0x00, /* Frequency Synthesizer Calibration */
- CC115L_FSCAL0, 0x1f, /* Frequency Synthesizer Calibration */
- CC115L_RESERVED_0X29, 0x89, /* Use setting from SmartRF Studio */
- CC115L_RESERVED_0X2A, 0x127, /* Use setting from SmartRF Studio */
- CC115L_RESERVED_0X2B, 0x63, /* Use setting from SmartRF Studio */
- CC115L_TEST2, 0x81, /* Various Test Settings */
- CC115L_TEST1, 0x35, /* Various Test Settings */
- CC115L_TEST0, 0x09, /* Various Test Settings */
- CC115L_PARTNUM, 0x00, /* Chip ID */
- CC115L_VERSION, 0x09, /* Chip ID */
- CC115L_MARCSTATE, 0x00, /* Main Radio Control State Machine State */
- CC115L_PKTSTATUS, 0x00, /* Current GDOx Status and Packet Status */
- CC115L_TXBYTES, 0x00, /* Underflow and Number of Bytes */
-#endif
-
-/***************************************************************
- * SmartRF Studio(tm) Export
- *
- * Radio register settings specifed with address, value
- *
- * RF device: CC115L
- *
- ***************************************************************/
-
-
- CC115L_IOCFG0, 0x06, /* GDO0 Output Pin Configuration */
- CC115L_FIFOTHR, 0x47, /* TX FIFO Thresholds */
- CC115L_PKTCTRL0, 0x05, /* Packet Automation Control */
- CC115L_FREQ2, 0x10, /* Frequency Control Word, High Byte */
- CC115L_FREQ1, 0xb6, /* Frequency Control Word, Middle Byte */
- CC115L_FREQ0, 0xa5, /* Frequency Control Word, Low Byte */
- CC115L_MDMCFG4, 0xfa, /* Modem Configuration */
- CC115L_MDMCFG3, 0x83, /* Modem Configuration */
- CC115L_MDMCFG2, 0x13, /* Modem Configuration */
- CC115L_MDMCFG1, 0x21, /* Modem Configuration */
- CC115L_DEVIATN, 0x35, /* Modem Deviation Setting */
- CC115L_MCSM0, 0x18, /* Main Radio Control State Machine Configuration */
- CC115L_RESERVED_0X20, 0xfb, /* Use setting from SmartRF Studio */
- CC115L_FSCAL3, 0xe9, /* Frequency Synthesizer Calibration */
- CC115L_FSCAL2, 0x2a, /* Frequency Synthesizer Calibration */
- CC115L_FSCAL1, 0x00, /* Frequency Synthesizer Calibration */
- CC115L_FSCAL0, 0x1f, /* Frequency Synthesizer Calibration */
- CC115L_TEST2, 0x81, /* Various Test Settings */
- CC115L_TEST1, 0x35, /* Various Test Settings */
- CC115L_TEST0, 0x09, /* Various Test Settings */
-
- CC115L_PA, 0x00, /* Power setting (0dBm) */