summaryrefslogtreecommitdiff
path: root/src-avr/ao.h
Commit message (Collapse)AuthorAge
* altos-avr: Include serial/flight in companion commandsKeith Packard2011-08-13
| | | | | | | This lets TeleScience log these values so the log can be matched with a suitable TeleMetrum log. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Report log format in the version commandKeith Packard2011-08-13
| | | | | | | | | | Cherry-pick from 8624213ee204bfdcb219c65b3618751d8278d9db This will make it easier to figure out what the contents of the flash should look like from altosui; the current 'guessing' mechanism will not scale to many more formats. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos-avr: Store TM tick and state in log, get logging on/off workingKeith Packard2011-08-12
| | | | | | | | | | | To sync TM and TS data after flight, store the TM tick data in the log along with the TM state. This should provide sufficient data to synchronize the two data streams. Use the TM state to enable/disable logging, log from boost to landing and otherwise do not log. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos-avr: Completely replace the spi slave codeKeith Packard2011-08-12
| | | | | | | | | | | | | | Turns out the AVR we're using sucks at doing SPI slave. To get it running at a reasonable data rate, I had to completely gut the 'sensible' code and run everything from the ISR with interrupts disabled. Even with this, the maximum SPI clock rate is somewhere around 200kHz. That's due to the singled buffered nature of the transmit queue, the amount of time available between finishing one byte and starting the next is very very small. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos-avr: Add SPI-slave companion supportKeith Packard2011-07-13
| | | | | | | | Listen on the SPI slave port for commands from TeleMetrum. Run logging during flight, based on flight state. Return recent data for telemetry. Signed-off-by: Keith Packard <keithp@keithp.com>
* src-avr: Add LCD driver for NHD-C0216CU-FN-GWB-3V displayKeith Packard2011-06-04
| | | | | | | Initializes the Newhaven display and has a few simple commands to show some text. Signed-off-by: Keith Packard <keithp@keithp.com>
* src-avr: bump ADC ring to 16 samplesKeith Packard2011-05-21
| | | | | | | We've got ram for it at this point, and it's nice to have more data from before boost detect. Signed-off-by: Keith Packard <keithp@keithp.com>
* src-avr: Finish up telescience loggingKeith Packard2011-05-21
| | | | | | | Adds list and delete commands, making them compatible with telemetrum and telemini equivalents. Signed-off-by: Keith Packard <keithp@keithp.com>
* src-avr: Log ADC data to eepromKeith Packard2011-05-21
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* src-avr: Add ADC routines to telescienceKeith Packard2011-05-21
| | | | | | | Note that SLEEP mode must be disabled or extra ADC interrupts occur, which messes up saving ADC values to the right channel. Signed-off-by: Keith Packard <keithp@keithp.com>
* src-avr: Suspend interrupts while switching stacksKeith Packard2011-05-18
| | | | | | | | Setting the stack pointer takes two instructions, so make sure we don't get an interrupt in the middle of it. Let the restoration of SREG set the interrupt flag as appropriate. Signed-off-by: Keith Packard <keithp@keithp.com>
* src-avr: USB work in progressKeith Packard2011-05-17
| | | | | | Some packets are flowing, although it's not working right. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos-avr: Initial OS port to AVRKeith Packard2011-05-13
This is working with output to the serial line Signed-off-by: Keith Packard <keithp@keithp.com>