altos: Use AO_TICK_TYPE/AO_TICK_SIGNED for lco/pad code
authorKeith Packard <keithp@keithp.com>
Wed, 22 Jan 2020 20:41:40 +0000 (12:41 -0800)
committerKeith Packard <keithp@keithp.com>
Wed, 22 Jan 2020 20:41:40 +0000 (12:41 -0800)
commit54e98a498db0d7026ce16c3ad53bc60986c68253
treeb7f3119ae9f619eb504a4f42e2e5155a8d24400a
parent366c1422f6d34c8f616dc95c2767d01c4f53f581
altos: Use AO_TICK_TYPE/AO_TICK_SIGNED for lco/pad code

Was using 16-bit types, which 'mostly' worked, except that the pad
code compared ao_time() with a 16-bit value when determining the radio
status. After the box was on for 10 minutes (timer wrapped), the RF
timeout check would always fail, so the red LED would be lit.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_lco.c
src/drivers/ao_lco.h
src/drivers/ao_lco_bits.c
src/drivers/ao_lco_cmd.c
src/drivers/ao_lco_func.c
src/drivers/ao_pad.c
src/telelco-v2.0/ao_lco_v2.c