altos: Compute igniter good/bad thresholds using 3.5V value
authorKeith Packard <keithp@keithp.com>
Sat, 22 Jul 2023 06:19:06 +0000 (23:19 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 22 Jul 2023 06:19:06 +0000 (23:19 -0700)
commit70481772386d556b8a7981da38a03f5c9b181a7c
treec1a5dfe8fc4b64efcd5695db04c77e54404a9af8
parentf495f2a479569d839f4efe8f115d51ae162edcfd
altos: Compute igniter good/bad thresholds using 3.5V value

Instead of requiring each product to set the ADC values for good/bad
igniters, compute them based upon a 3.5V value using the ADC
characteristics already present in ao_pins.h.

This changes the threshold used on LPC parts from 400 (0.189V) to
7388.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao.h
src/kernel/ao_convert_volt.c