summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2015-12-17 19:29:36 -0800
committerKeith Packard <keithp@keithp.com>2016-04-19 23:21:30 -0400
commit553c89f8c64398cb1a815b1fa248980cd3f62ef8 (patch)
tree2debd571ce6d8da8b2c46be802332889766e92ec /src
parentb8a19e83b7b1b8e2a1fcbdd58e41f9f974ae28ff (diff)
altos: Support telefire products in cc1200 driver
Need to disable the pad code while testing the radio. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/ao_cc1200.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/drivers/ao_cc1200.c b/src/drivers/ao_cc1200.c
index 6547be39..6bccb188 100644
--- a/src/drivers/ao_cc1200.c
+++ b/src/drivers/ao_cc1200.c
@@ -20,6 +20,9 @@
#include <ao_exti.h>
#include <ao_fec.h>
#include <ao_packet.h>
+#if HAS_PAD
+#include <ao_pad.h>
+#endif
static uint8_t ao_radio_mutex;
@@ -813,6 +816,9 @@ ao_radio_test_cmd(void)
#if PACKET_HAS_SLAVE
ao_packet_slave_stop();
#endif
+#if HAS_PAD
+ ao_pad_disable();
+#endif
ao_radio_get(0xff);
ao_radio_set_mode(AO_RADIO_MODE_TEST);
ao_radio_strobe(CC1200_STX);
@@ -838,6 +844,9 @@ ao_radio_test_cmd(void)
#if HAS_MONITOR
ao_monitor_enable();
#endif
+#if HAS_PAD
+ ao_pad_enable();
+#endif
}
}