diff options
author | Keith Packard <keithp@keithp.com> | 2012-07-10 22:41:59 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-07-10 22:41:59 -0700 |
commit | 46407f7f3e4d2b6e74b3a2e90b38736a792cfc54 (patch) | |
tree | eb4b15fd39b0d9ed7a2131ef662429b050fa4908 /src/core/ao_config.c | |
parent | aa305da7e5dc182c99c09e422c053d85ed48d5d5 (diff) |
altos: Force 434.550Mhz by connecting debug gnd and clk (trac #41)
Check for pin P2_2 low at startup and set the frequency to
434.550MHz. This value won't get written to flash, so rebooting again
will restore the configured frequency.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao_config.c')
-rw-r--r-- | src/core/ao_config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/ao_config.c b/src/core/ao_config.c index e0dabcd9..ced8b1f2 100644 --- a/src/core/ao_config.c +++ b/src/core/ao_config.c @@ -135,6 +135,10 @@ _ao_config_get(void) ao_config_dirty = 1; } #if HAS_RADIO +#if HAS_FORCE_FREQ + if (ao_force_freq) + ao_config.frequency = 434550; +#endif ao_config_set_radio(); #endif ao_config_loaded = 1; |