altos: Remove cc1111 products We're not testing these anyways; building new firmware for them is not helpful. Signed-off-by: Keith Packard <keithp@keithp.com>
altos/telefire*: Do voltage tests in decivolts instead of ADC units This requires that each pad device specify the ADC reference voltage and all relevant voltage divider resistor values explicitly so that the ADC values can be converted to decivolts and compared with one another. This should be easier to understand in the future when reading the code. Signed-off-by: Keith Packard <keithp@keithp.com>
altos: Add pad support for new telefire versions Makes the voltage divider values configurable, and allows for pyro channels that don't have the resistors necessary to check for a stuck relay. Also supports STM32L processors with wider GPIO registers, and uses the new ao_gpio_set/clr_bits functions to fire igniters rather than cc1111-specific code. Signed-off-by: Keith Packard <keithp@keithp.com>
altos: Call ao_task_init before initializing any drivers When using task queues, the sleep queues must be initialized before any invocation of ao_wakeup or the OS will crash. Just make sure ao_task_init is always invoked early in the task process to get that done. Signed-off-by: Keith Packard <keithp@keithp.com>
altos: Configure telefire SPI and LEDs correctly This places the telefire SPI bus on USART1 option 2 and marks the various LED functions with symbolic names. Signed-off-by: Keith Packard <keithp@keithp.com>