From: Keith Packard Date: Thu, 5 Feb 2015 04:30:15 +0000 (-0800) Subject: altos/telebt-v3.0: Set initial radio cal to a sensible value X-Git-Tag: 1.6~41 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=dbafa16cfa897b2a5c6cf455cf8675e83eb0d7d6;hp=be443d8d50ad8f59a74bf2f4e810a7359ff72132 altos/telebt-v3.0: Set initial radio cal to a sensible value CC1200 uses a different xtal than CC1120, so the default calibration needs to change. This value hit 434.550 on SN 2407, so it seems like a reasonable place to start. Signed-off-by: Keith Packard --- diff --git a/src/telebt-v3.0/ao_pins.h b/src/telebt-v3.0/ao_pins.h index bcda90d1..838f0dfc 100644 --- a/src/telebt-v3.0/ao_pins.h +++ b/src/telebt-v3.0/ao_pins.h @@ -184,7 +184,7 @@ struct ao_adc { /* gets pretty close to 434.550 */ -#define AO_RADIO_CAL_DEFAULT 0x6ca333 +#define AO_RADIO_CAL_DEFAULT 5695485 #define AO_FEC_DEBUG 0 #define AO_CC1200_SPI_CS_PORT (&stm_gpiob)