summaryrefslogtreecommitdiff
path: root/src/micropeak-v2.0/ao_micropeak.c
Commit message (Collapse)AuthorAge
* altos/micropeak-v2.0: Reduce power usageKeith Packard2019-07-16
| | | | | | | This gets power consumption down under 1mA on the pad. Not really low enough to sell, but I think this is about as low as the chip will go. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/micropeak-v2: Erase log space at end of BOOST_DELAYKeith Packard2019-06-18
| | | | | | | We have to erase the log before the flight starts, so this seems like the latest possible moment. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/micropeak-v2.0: expose log and config commands over USBKeith Packard2019-06-18
| | | | | | This lets AltosUI handle the eeprom data Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/micropeak-v2.0: Go into standby mode after landingKeith Packard2019-06-18
| | | | | | | This is the lowest power state we can reach, and consumes about 15µA or less. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/micropeak-v2.0: Fix LED blinking sequence at power-onKeith Packard2019-06-18
| | | | | | 'pips' happens between altitude report and data dump. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/micropeak-v2.0: Wait for the power supply to stabilize before measuringKeith Packard2019-06-18
| | | | | | | | If we don't wait before measuring the battery, it will often read under 3.2V right at boot time, which puts MicroPeak in flight mode instead of USB mode. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/micropeak-v2.0: Don't run flight code when plugged inKeith Packard2019-06-17
| | | | | | No sense running the flight code when there's a USB cable attached. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add generic LED driver.Keith Packard2018-10-13
| | | | | | | | | | | This driver uses the generic GPIO functions and allows per-LED port and pin configuration. It supports up to 32 LEDs. Rename SoC-specific LED drivers. Remove enabled parameter to ao_led_init Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/micropeak-v2.0: Add initial MicroPeak v2 supportKeith Packard2017-04-28
stm32f042 processor replaces the attiny85 and adds USB support along with more storage. Signed-off-by: Keith Packard <keithp@keithp.com>