diff options
author | Keith Packard <keithp@keithp.com> | 2016-07-27 13:24:57 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2016-07-27 13:24:57 -0700 |
commit | 71ddb973ff75680e78fbbef7978ab3893c367629 (patch) | |
tree | affd5d51d22d94a3879b43a48c576753284ce5fe /src/cc1111 | |
parent | 59874a062543c61d164089e8b31f55a9b860c0b1 (diff) |
altos: Expose cc1200 radio test functions for telemini bringup
This exposes the cc1200 radio test function so we can load special
test firmware in telemini to do the radio cal as it has no USB to
perform that interactively.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cc1111')
-rw-r--r-- | src/cc1111/ao_radio.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cc1111/ao_radio.c b/src/cc1111/ao_radio.c index ad337fc5..166d14d5 100644 --- a/src/cc1111/ao_radio.c +++ b/src/cc1111/ao_radio.c @@ -588,13 +588,13 @@ ao_radio_rdf_abort(void) /* Output carrier */ -static __xdata ao_radio_test_on; +static __xdata radio_test_on; void ao_radio_test(uint8_t on) { if (on) { - if (!ao_radio_test_on) { + if (!radio_test_on) { #if HAS_MONITOR ao_monitor_disable(); #endif @@ -606,13 +606,13 @@ ao_radio_test(uint8_t on) #endif ao_radio_get(0xff); RFST = RFST_STX; - ao_radio_test_on = 1; + radio_test_on = 1; } } else { - if (ao_radio_test_on) { + if (radio_test_on) { ao_radio_idle(); ao_radio_put(); - ao_radio_test_on = 0; + radio_test_on = 0; #if HAS_MONITOR ao_monitor_enable(); #endif |