altos: Switch all tick variables to AO_TICK_TYPE/AO_TICK_SIGNED Instead of trying to pick and choose which work as 16-bit values, change everything that doesn't affect external values (log, companion, radio) to AO_TICK_TYPE. Signed-off-by: Keith Packard <keithp@keithp.com>
altos: Use new ao_spi_speed inline to set SPI speeds using spec'd frequencies Instead of hand-adjusting SPI speeds for each driver and product based on processor supported rates, create an inline function that takes the maximum frequency supported by the device and maps that to a value supported by the SoC. This ensures that we don't accidentally drive devices faster than they want (as could happen with AO_SPI_SPEED_FAST), but do go as fast as possible in every configuration. Using an inline function means the value is computed at compile time. Signed-off-by: Keith Packard <keithp@keithp.com>
altos: Define AO_LOG_FORMAT in */ao_pins.h. Use in ao_cmd.c Instead of having a global variable define the log format, use a macro instead to save data space. Signed-off-by: Keith Packard <keithp@keithp.com>
altos: Define CC115L spi speed in each product Different SoCs have different SPI speeds available; have each product specify the speed to use instead of trying to use 4Mhz everywhere. Signed-off-by: Keith Packard <keithp@keithp.com>
Switch from GPLv2 to GPLv2+ Signed-off-by: Keith Packard <keithp@keithp.com>
telegps-v1.0: Document how SN 1959 was fixed SN1959 was fixed by jumpering pin 8 to pin 10 so that the DONE_INT_PIN could be switched from PIO 2 to PIO 4 as pin 8 appeared to have failed. Signed-off-by: Keith Packard <keithp@keithp.com>
telegps-v1.0: Provide one log and append to it Instead of creating per-flight logs, create a single log and append data to it each time TeleGPS is powered on. This avoids potentially running out of log space just because the device is powered off/on. Signed-off-by: Keith Packard <keithp@keithp.com>
altos/telegps: Set default log to 496kB for 4 logs This leaves space for four flight logs. Signed-off-by: Keith Packard <keithp@keithp.com>
altos: Set TeleGPS default log size to half of avaiable memory LPC11U14 doesn't have on-chip config space, so we're consuming a block of external flash. As a result, only 1984kB are available for logging. Set the default log size to half of that to store two flights. Signed-off-by: Keith Packard <keithp@keithp.com>
altos: Enable ADC for TeleGPS v1.0 battery voltage measuring Signed-off-by: Keith Packard <keithp@keithp.com>
altos: Add telegps-v1.0 code and loader Signed-off-by: Keith Packard <keithp@keithp.com>