summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* | altos: allow projects to override default config valuesKeith Packard2013-08-17
| | | | | | | | | | | | Override default radio power and APRS interval Signed-off-by: Keith Packard <keithp@keithp.com>
* | Merge branch 'master' into telegps-v0.3Keith Packard2013-08-17
|\|
| * altos: Make FAT test program link explicitly against libcryptoKeith Packard2013-08-17
| | | | | | | | | | | | | | For some reason, the MD5_Final symbol isn't resolved when linking only against libssl. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Remove ao_radio_gpio_bits from normal buildKeith Packard2013-07-02
| | | | | | | | | | | | Only needed for the CC115L_TRACE code, and it only builds on STM Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/lpc: Rename serial port to 'serial0'Keith Packard2013-07-02
|/ | | | | | This lets existing serial port users find the right function. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Support mega-style logging without ADCKeith Packard2013-06-24
| | | | | | | Used for TeleGPS, just exposes the necessary log writing function without also including the ADC writing code. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Add boot loaderKeith Packard2013-06-24
| | | | | | Support the USB boot loader, add USB pull-up support. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telefire-v0.1: Use same LED selection as the v0.2 setupKeith Packard2013-06-22
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Don't disable all interrupts when disabling one interruptKeith Packard2013-06-22
| | | | | | | | | The nvic iser and icer registers read value indicates all enabled interrupts, icer writes disable the set interrupts. Re-writing icer with the current value ends up disabling all interrupts, not exactly what we wanted. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Remove ao_usb_task structureKeith Packard2013-06-22
| | | | | | It's not used Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Enable brown-out-detectorKeith Packard2013-06-22
| | | | | | Make sure the processor does something sensible when the power disappears. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telefire: Radio status (no data, weak data, good data) on LEDsKeith Packard2013-06-19
| | | | | | | | Instead of blinking RX/TX, report the radio status on the telefire nodes, just like telelco does. This makes the LEDs on telefire *exactly the same* as the LEDs on telelco, which seems like a good idea. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: PCA9922 LED driver needs Enable driven low to latch valuesKeith Packard2013-06-19
| | | | | | | Driving Enable high means anything going past on the clock and data pair is reflected on the LEDs, which isn't terribly useful Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/cc1111: Fetch RSSI for TeleFire from correct byteKeith Packard2013-06-19
| | | | | | Reading the status byte doesn't provide very useful RSSI info Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Get rid of ADC filterKeith Packard2013-06-17
| | | | | | | Now that the source of the Vcc noise has been identified, remove the unnecessary ADC filtering. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Get the IRC turned off after boot timeKeith Packard2013-06-17
| | | | | | | This involved carefully moving the USB away from the IRC before turning it off. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Disable USB on all flight computers when in flight modeKeith Packard2013-06-17
| | | | | | | There was a check to only disable USB on boards with radios, but for EasyMini, we want to disable USB too for flight mode. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Declare m25 write-in-progress as 'ao_port_t'Keith Packard2013-06-16
| | | | | | This lets us use port bits greater than 7 for M25 chip selects Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Remove spurious semicolonKeith Packard2013-06-16
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Don't disable all of the clocks just yet, USB doesn't workKeith Packard2013-06-16
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Turn off more clocks, disable USART for easyminiKeith Packard2013-06-16
| | | | | | Try to reduce noise on the power supply. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Filter ADC inputsKeith Packard2013-06-15
| | | | | | | They're amazingly noisy on EasyMini, so just filter them as the only thing we use them for is battery and pyro numbers. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Make ADC inputs workKeith Packard2013-06-15
| | | | | | | They're still very unstable (bouncing around a lot), but at least they seem to report useful stuff now. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telelco: Add 30ms delay in search after finding a boxKeith Packard2013-06-09
| | | | | | | This gives the remote boxes time to get back to listening for messages after receiving the packet from the found box. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add fast-timer API. Use for quadrature and button driversKeith Packard2013-06-09
| | | | | | | This splits the fast-timer portion out of the debounce helper code and shares that with the quadrature driver which now uses it directly. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add debounce helper. Use in button and quadrature drivers for TeleLCOKeith Packard2013-06-09
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telefire: Leave siren on all the time. Add siren/strobe debugging.Keith Packard2013-06-09
| | | | | | The 50% duty cycle wasn't actually loud enough outside. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add telefire v0.2 supportKeith Packard2013-06-09
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add driver for 74hc165 shift registerKeith Packard2013-06-09
| | | | | | Just reads one byte from the shift register using the SPI driver and returns it Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add pyro operations to regular ignite commandsKeith Packard2013-05-26
| | | | | | Instead of having separate commands, just mix the two sets together. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make manual pyro firing command work againKeith Packard2013-05-26
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: write pyro fired to correct log fieldKeith Packard2013-05-26
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Light pyro charges simultaneously if so configuredKeith Packard2013-05-26
| | | | | | | | Don't try to be nice to the battery, just let the pyro circuit deal with it and try to get all of the specified circuits going at the same time if they're configured to do so. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos,altosui: Add pyro state logging for TeleMegaKeith Packard2013-05-26
| | | | | | | Only in the log file (no obvious space in the telem packets), but at least we should be able to check for pyro failures. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add pyro code testing to ao_flight_test for TeleMegaKeith Packard2013-05-26
| | | | | | | This parses the pyro settings and signals when the pyro channels are fired in the output. Signed-off-by: Keith Packard <keithp@keithp.com>
* Separate out cortex-m0 compiler tests in configureKeith Packard2013-05-21
| | | | | | | | The summon arm toolchain doesn't work for cortex-m0 parts, but the linaro toolchain does. Look in /usr/bin for the -m0 compiler but continue to use /opt/cortex/bin for the -m3 compiler Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Can't use inline functions because SDCC doesn't do thatKeith Packard2013-05-21
| | | | | | Sigh. Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge branch 'lpc'Keith Packard2013-05-21
|\
| * Add Mini logging format. Use in EasyMinilpcKeith Packard2013-05-19
| | | | | | | | | | | | | | This is a 16-byte record that includes all of the sensor data in each sensor record, along with records for flight state changes. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/easymini: Initialize beep and ADC. Declare use of igniter bits.Keith Packard2013-05-19
| | | | | | | | | | | | This makes easymini actually work! Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/easymini: Use different pins for igniter outputsKeith Packard2013-05-19
| | | | | | | | | | | | | | Was using the I2C outputs which are open drain, which makes it impossible to force them high as needed to driver our igniters. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/easymini: MS5607 chip select bits were defined wrongKeith Packard2013-05-19
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/easymini: Easymini doesn't have USB connect or VBUS wiringKeith Packard2013-05-19
| | | | | | | | | | | | Disable these in ao_pins.h Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/lpc: Force idle mode if USB gets an address during boot timeKeith Packard2013-05-19
| | | | | | | | | | | | This lets EasyMini be booted to idle mode by simply plugging it into USB. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/lpc: Reset SPI device at startup timeKeith Packard2013-05-19
| | | | | | | | | | | | Wasn't doing the reset sequence correctly (write 0, then write 1). Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/lpc: Configuring wrong pin for SPI1 MOSIKeith Packard2013-05-19
| | | | | | | | | | | | Was setting configuration for PIO1_21 instead of PIO0_21. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/lpc: Allow for alternate SPI SCLK0 pin usageKeith Packard2013-05-19
| | | | | | | | | | | | | | SPI SCLK0 can appear on three different pins; let the application configure which one it wants. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/lpc: Leave SPI enabled all the timeKeith Packard2013-05-19
| | | | | | | | | | | | Might be able to turn it off with some care; more experimentation required. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/lpc: Create TX/RX busy macros for SPI driverKeith Packard2013-05-19
| | | | | | | | | | | | | | Check for both fifo status *and* device busy to make sure the device is idle before we touch any registers. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/lpc: Fix beeper driverKeith Packard2013-05-19
| | | | | | | | | | | | | | | | Set prescale limit, not current prescale value (pr instead of pc). Flip output 1 on PWM match (set emc toggle for channel 1). Don't hold counter in reset (turn off CRST bit). Signed-off-by: Keith Packard <keithp@keithp.com>