summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* altos: Go back to recording sensor data in globalsmm-ms5611Keith Packard2012-10-08
| | | | | | | | Instead of trying to get things into the ring from a variety of functions, go back to the simpler method of storing them in globals and having the ADC code just pluck out the most recent values. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/megametrum: Try running accel and baro in parallel againKeith Packard2012-10-07
| | | | | | | Now that the baro sensor appears to be working, try running conversions in parallel to see if that makes the accel cal happy Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm: Set SPI clock high for disabled SPI bussesKeith Packard2012-10-06
| | | | | | | This should avoid an accidental low->high transition when switching between multiple SPI busses. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm: Clean up SPI pin configuration codeKeith Packard2012-10-06
| | | | | | | Make sure none of the pin configurations are being used at startup time. Split out the pin configuration into separate functions. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/drivers: Use data ring values for MS5607 presentationKeith Packard2012-10-06
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/megametrum: Make MS5607 driver hold SPI bus for whole operationKeith Packard2012-10-06
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/megametrum: Use mma655x for acceleration measurements nowKeith Packard2012-10-06
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge branch 'master' into mm-ms5611Keith Packard2012-10-03
|\
| * altos: Re-enable the ms5607 and mma655x acquisition threadsKeith Packard2012-10-03
| | | | | | | | | | | | These were disabled to help with testing in Argonia Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/megametrum: Commit for boards with MS5611 baro sensorKeith Packard2012-10-03
|/ | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Provide MS5611 configuration option, HAS_MS5611Keith Packard2012-10-03
| | | | | | | | | MS5611 and MS5607 use slightly different conversion functions. Alas, there doesn't appear to be a way to tell them apart in software. This patch adds the necessary conversion changes and makes them depend on a compile-time configuration option. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Shrink Pa to altitude tableKeith Packard2012-09-21
| | | | | | | This improves the computation of the table enough that errors from a 470 entry table are almost all < 0.5m. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix telemini sdcdb init fileKeith Packard2012-09-16
| | | | | | Set the driver source path for the debugger Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Need to use 16-bit counts for ao_xmem functionsKeith Packard2012-09-14
| | | | | | | | | Trying to use 8-bit counts is a nice optimization which fails when the count is larger than 255, as is the case with clearing the flash block in the AT45 driver. This bug resulted in the inability to erase flights on TeleMetrum v1.0 boards. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telelco: Search for available firing nodes at boot timeKeith Packard2012-09-09
| | | | | | Query for available firing nodes, limiting device selections to those found. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telefire: Add steady warble when the LCO arm switch is onKeith Packard2012-09-09
| | | | | | And make debugging a run-time option too. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm: Fix basic time interval to 10ms -- was 10.1msKeith Packard2012-09-09
| | | | | | Counting from 0 to 100 takes 10.1ms, so count to 99 instead. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/spiradio: Label LEDs so that the radio code can use themKeith Packard2012-09-09
| | | | | | Mark which should be on for TX and which for RX Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Try to get remote cmac time closer to realityKeith Packard2012-09-09
| | | | | | | | Record the time after the packet was sent, but before the return packet arrives to try and more closely approximate the time the packet arrived at the other end. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Clean up flight data definitionsKeith Packard2012-09-09
| | | | | | | These just shuffle the various definitions of data macros around to make the include files more sensible looking. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: include ao_arch_funcs.h at the very end of ao.hKeith Packard2012-09-09
| | | | | | Move it below the definition of the ms5607 init function Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Allow products without MS5607Keith Packard2012-09-09
| | | | | | | The define for a missing MS5607 was wrong, so anything using the fancy multi-sensor data code would break without an MS5607 in place. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix radio slave to run lights in the normal wayKeith Packard2012-09-06
| | | | | | These were left in a debug mode, toggling instead of flashing. Signed-off-by: Keith Packard <keithp@keithp.com>
* Revert "first work on PWM input to TeleScience, 'p' command displays timer 1"Keith Packard2012-09-01
| | | | | | PWM bits not suitable for master This reverts commit e93c6bcc799d76d4ff425815e2601a25e6796229.
* Revert "Timer 3 working with slower clock and all 16 bits."Keith Packard2012-09-01
| | | | | | PWM bits not suitable for master This reverts commit 49b1ff4c614d24977b33cd17b583acc87acff476.
* Revert "ICP3 working"Keith Packard2012-09-01
| | | | | | PWM bits not suitable for master This reverts commit 75d6aa6f798606f1a6c5a46542065dda81e63b2a.
* Revert "telescience: correctly calculating rate values with higher resolution"Keith Packard2012-09-01
| | | | | | PWM bits not suitable for master This reverts commit ada6f2dfc045e77cb9499f20cdec1b4a54ef0db1.
* altos: Get mma655x driver limping alongKeith Packard2012-08-31
| | | | | | This appears to drive the chip correctly to see values from the accelerometer. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix mma665x pin assigment for mma655xKeith Packard2012-08-31
| | | | | | It's on PE13-PE15, not PA5-PA7 Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add custom panic noise for self-test failuresKeith Packard2012-08-31
| | | | | | Make it easier to tell which component is failing self test Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: another .gitignore fileKeith Packard2012-08-30
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: ao_cc_spi.h isn't necessary for telelcoKeith Packard2012-08-30
| | | | | | The SPI radio defines are in ao_radio_spi.h Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add a bunch of .gitignore entriesKeith Packard2012-08-30
| | | | | | Clean up the git status output Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Shuffle LCO functions around, add telelco first cutKeith Packard2012-08-30
| | | | | | | | | Pull LCO functions shared between LCO UI and command line into ao_lco_funcs.c. Import bits for telelco. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Disable debug printfs and fix pad ignite time for telefireKeith Packard2012-08-30
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: spiradio debug serial is port 1, not port 0Keith Packard2012-08-29
| | | | | | | The SPI link uses port 0; it seems like the having the two try to share the same wires is a bad plan. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: SPI radio - use 1->0 for 'done' and 0->1 for 'ready'Keith Packard2012-08-29
| | | | | | | | | | This changes how the SPI radio protocol uses the interrupt line. Instead of a pulse indicating operation done, this now uses a 0 value for done and a 1 value for ready. The key distinction is that the master can tell when the slave is waiting for the next command instead of hoping that it got done 'soon enough'. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: fix ao_pad debug output for query commandKeith Packard2012-08-29
| | | | | | Igniter status is an array these days. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Use updated pad protocol for lco commandsKeith Packard2012-08-29
| | | | | | | Stop using the older single-channel protocol and switch to the new multi-channel protocol Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Note changes to configured AES key for SPI radio convenienceKeith Packard2012-08-29
| | | | | | | Keep a sequence number to mark when the AES key is changed so that the radio code can avoid sending the key before every CMAC radio operation. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Wait for IN dma complete on slave SPI sendKeith Packard2012-08-29
| | | | | | | SPI send double buffered, so the DMA completes one byte too early. Use the recv DMA to know when the SPI transfer is complete. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Oops. forgot ao_data.cKeith Packard2012-08-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add spiradio MakefileKeith Packard2012-08-28
| | | | | | git add doesn't add Makefile by default. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Mostly working SPI radio linkKeith Packard2012-08-28
| | | | | | | | This includes long delays to avoid overrunning the cc1111 input, otherwise it works pretty well. The delays mean that we can't capture the reply to a cmac command though, so more work is needed. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Include the radio_cmac debug commands in telefireKeith Packard2012-08-28
| | | | | | Just temporary debugging Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Explicitly erase memory in STM eeprom driver.Keith Packard2012-08-28
| | | | | | This seems to make the STM32L152 happier Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Track protocol changes to ao_pad debug messagesKeith Packard2012-08-28
| | | | | | Make the debug output build again. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Stop providing debug commands in seven-segment driverKeith Packard2012-08-28
| | | | | | The radio_cmac debug commands use the same letter, and this code works now... Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Move radio_cmac test funcs from ao_lco_cmd.c to new fileKeith Packard2012-08-28
| | | | | | | These are useful in the firing node for testing as well, so move them to be shared. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: When sharing radio DMA for AES, use it for in instead of outKeith Packard2012-08-28
| | | | | | | | | We look at the out_done value, but not the in_done value; if we use the radio DMA for out, we would have to use ao_radio_dma_done to check for completion. This way, we can ignore that value and use the existing ao_aes_dma_out_done value. Signed-off-by: Keith Packard <keithp@keithp.com>