altos: Move 'ao_force_freq' to ao_config.c
authorKeith Packard <keithp@keithp.com>
Fri, 5 May 2017 05:06:16 +0000 (22:06 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 5 May 2017 05:10:36 +0000 (22:10 -0700)
Instead of having to add it to each product using this variable.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_config.c
src/product/ao_telemini.c
src/telemini-v2.0/ao_telemini.c

index 5dda1c85009094855eb7e15436ec64d6f0c73da9..25634ffc3178ab88769867ae0d9b9b2df416cfcd 100644 (file)
@@ -35,6 +35,10 @@ __pdata uint8_t ao_config_loaded;
 __pdata uint8_t ao_config_dirty;
 __xdata uint8_t ao_config_mutex;
 
+#if HAS_FORCE_FREQ
+__xdata uint8_t ao_force_freq;
+#endif
+
 #ifndef AO_CONFIG_DEFAULT_APRS_INTERVAL
 #define AO_CONFIG_DEFAULT_APRS_INTERVAL        0
 #endif
index b192763df0593817f171b3c45d01cfc26ad69865..14414a48d44d562f46dfb1c7bc2dab3e416c2dce 100644 (file)
@@ -19,8 +19,6 @@
 #include "ao.h"
 #include "ao_pins.h"
 
-__xdata uint8_t ao_force_freq;
-
 void
 main(void)
 {
index 68bc3dfe9fac1ca320c2cd6a3c98ce9ba9caa2af..a9ee423c9db11edcf087bc99bec187b7bb1e761e 100644 (file)
@@ -20,8 +20,6 @@
 #include "ao_pins.h"
 #include <ao_exti.h>
 
-__xdata uint8_t ao_force_freq;
-
 void
 main(void)
 {