altos: Remove linker map files during 'make clean' Signed-off-by: Keith Packard <keithp@keithp.com>
altos: Move common build definitions to src/Makefile.defs This cleans up the build process for all architectures, providing a common place to specify vpath, cflags and build rules for various common files. Signed-off-by: Keith Packard <keithp@keithp.com>
altos: Add generic LED driver. 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: Remove all compiler results Not just the current version. Signed-off-by: Keith Packard <keithp@keithp.com>
altos/micropeak: Create a script to load firmware. The micropeak-load script flashes micropeak with firmware from whatever directory it is sitting in. A 'publish' target in the source directory copies the script and hex to ~/altusmetrumllc/Binaries Signed-off-by: Keith Packard <keithp@keithp.com>
altos: Fix nanopeak compile Nanopeak uses port B bit 3 for the LED instead of bit 4. Fix the async code to support arbitrary bits for the serial LED. Signed-off-by: Keith Packard <keithp@keithp.com>
altos: Provide stable binaries for MicroPeak Publish MicroPeak .hex file to LLC repo and install it from there, rather than rebuilding it locally. This ensures that the installed bits don't depend on local configuration of any kind. Signed-off-by: Keith Packard <keithp@keithp.com>
altos: Rename 'core' to 'kernel' core remains a bad name to use -- dirvish skips files (and directories, it seems) with that name. Signed-off-by: Keith Packard <keithp@keithp.com>
altos: avr-gcc appears to find the loader scripts without help now At some point, avr-gcc lost its ability to find the loader scripts necessary to link programs. That appears to be fixed now, at least on my machine. Signed-off-by: Keith Packard <keithp@keithp.com>
Add --with parameters to configure for compiler selection This allows the user to specify which compiler to use for each target CPU. Also checks to make sure the arm compiler supports -m0 and -m3 cpu type flags. The build now actually uses the specified compilers too. Signed-off-by: Keith Packard <keithp@keithp.com>
altos: Move micropeak sources around This sticks the micropeak sources in appropriate directories, rather than in the micropeak product directory so that they can be shared with future micropeak-style products. Signed-off-by: Keith Packard <keithp@keithp.com>
altos: Explicitly list the linker script needed for AVR targets. Something changed in the binutils-avr package which makes the linker fail to find the script in the default location. Signed-off-by: Keith Packard <keithp@keithp.com>
altos: Add Kalman filter to MicroPeak This filters altitudes more accurately and also allows tracking of acceleration, which is used to discard height data generated by ejection charge noise Signed-off-by: Keith Packard <keithp@keithp.com>
altos: Make micropeak 'serial' interface work I prototyped the mpserial interface on a breadboard and tuned the circuit to register the LED correctly. Then adjusted the serial code to send bits at the right speed and format. The logging contents are now in hexdecimal with a CCITT CRC-16 computed to verify correct reception. Signed-off-by: Keith Packard <keithp@keithp.com>
altos: Log baro readings for MicroPeak This logs barometric data every 192ms (more or less) to the 504 remaining bytes of internal EEPROM storage in the ATtiny85. This provides 48.192 seconds of logging. Signed-off-by: Keith Packard <keithp@keithp.com>
altos: Add load-slow target for MicroPeak This sets the programming clock to 1/4 of the 250kHz clock used by the MicroPeak firmware, allowing the device to be reprogrammed. Signed-off-by: Keith Packard <keithp@keithp.com>
altos/micropeak: Switch to MS5607 sensor. Require 4m for boost. Elide dead code Signed-off-by: Keith Packard <keithp@keithp.com>
altos: Add initial micropeak implementation Blinks out max height in decimeters, stores previous flight data to internal eeprom. Signed-off-by: Keith Packard <keithp@keithp.com>