From: Keith Packard Date: Sat, 4 May 2019 04:51:28 +0000 (-0700) Subject: altos: Directly compute radio tuning values from frequency X-Git-Tag: 1.9.1~1^2~86 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;ds=inline;h=a6e8b739c47c50fa472e3f2a41cf13abb8d82c07;hp=a6e8b739c47c50fa472e3f2a41cf13abb8d82c07;p=fw%2Faltos altos: Directly compute radio tuning values from frequency The 8051 compiler doesn't support 64-bit ints, so the old code used an iterative method in 32-bit values. That could take a long time when the frequency was mis-entered in Hz or MHz instead of kHz. This direct-computation uses 64-bit ints, but takes a fixed amount of time for any inputs. Signed-off-by: Keith Packard ---