altos/stm32f042: Increase interrupt stack to 256 bytes Running the radio on TeleMini in monitor idle mode ended up overflowing the interrupt stack of 128 bytes. Increase to 256 bytes and adjust task stack sizes so targets continue to build. Signed-off-by: Keith Packard <keithp@keithp.com>
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: Make debug telemini firmware a bit easier to build To enable debugging, we need to stop using the SWD GPIO pins, which are normally used to trigger boot-time firmware behavior -- SWDIO is used to force entry to the boot loader while SWDCLK is used to force default frequency and callsign. This patch makes it easy to edit ao_pins.h to disable the default frequency option. Signed-off-by: Keith Packard <keithp@keithp.com>
altos/telemini-v3.0: Add 'recovery mode' on PA14 (pin 6 on dbg header) Connect this pin to GND (pin 3) and TeleMini will come up with N0CALL at 434.550MHz using the original frequency calibration. Helps recover from accidental mis-configuration. Signed-off-by: Keith Packard <keithp@keithp.com>
altos/telemini-v3.0: Remove vestiges of the pre-USB code Pre-USB telemini v3 designs had a separate firmware load for radio calibration. Now that we've got enough USB to perform flash/cal/test, we don't need that other firmware load, so we can remove the remaining Makefile remnants of the calibration load. Signed-off-by: Keith Packard <keithp@keithp.com>
altos/telemini-v3.0: Update to production hardware Removed LEDs. Added USB. Flipped lots of pins around. This appears to make telemini work. Signed-off-by: Keith Packard <keithp@keithp.com>