summaryrefslogtreecommitdiff
path: root/src/megametrum-v0.1/ao_pins.h
Commit message (Collapse)AuthorAge
* name change from MegaMetrum to TeleMegaBdale Garbee2013-04-22
|
* altos: Set STM GPIO output speed for SPI pins correctlyKeith Packard2013-01-13
| | | | | | | | The GPIO pin settings affect the output impedence, and hence the maximum speed for SPI. Cranking these to suitable values allows SPI to run at full speed. Signed-off-by: Keith Packard <keithp@keithp.com>
* Allow CC1120 to sit on other SPI bussesKeith Packard2012-12-31
| | | | | | | | Reading the incoming data bypasses the SPI API and touches the SPI data register directly; which port that is needs to be specified in the pins file Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Re-enable beeper on megametrumKeith Packard2012-12-16
| | | | | | I turned it off during radio testing and forgot to fix that before committing... Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Wire up another CC1120 GPIO to get MARC status changesKeith Packard2012-12-16
| | | | | | | | | | | | | When the radio drops out of RX or TX mode due to an error, it changes the MARC status, and sends pulse down a configured GPIO. Use this to tell when something 'bad' happened during TX or RX so that we can recover from losing the SPI bus in the middle of transmission or reception. Without this, the radio would change state and we'd never know, leaving the radio code waiting for an interrupt that would never arrive. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Hook up APRS to telemetry loopKeith Packard2012-12-06
| | | | | | Send APRS packet once every 2 seconds Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Expose GPS serial fifo on MegaMetrumKeith Packard2012-11-30
| | | | | | Necessary for direct access by the GPS reflashing code Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add task queues.Keith Packard2012-10-25
| | | | | | | | | This replaces the array-based scheduler with a queue-based one instead. It should have the same basic scheduling semantics, but it walks shorter lists for each operation, making it much more efficient when the system has a lot of tasks. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/megametrum: Switch back to using the MS5607Keith Packard2012-10-18
| | | | | | We're planning to ship the MS5607 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/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>
* altos/megametrum: Commit for boards with MS5611 baro sensorKeith Packard2012-10-03
| | | | 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: Trigger sample complete when all data are readyKeith Packard2012-08-26
| | | | | | | This has each sensor mark a bit in the current data record which is then sent for processing when all of the data are present. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add MMA655X driverKeith Packard2012-08-18
| | | | | | Just debug code at this point, will complete on real hardware Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Allow STM SPI bus on multiple pin setsKeith Packard2012-08-18
| | | | | | | | This allows multiple STM pin groups to be used for each SPI bus. Useful for the MS5607 sensor which signals conversion complete on the MISO line. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Place STM config values at fixed addresses for re-useKeith Packard2012-07-17
| | | | | | | | Just like cc1111, stick the serial number and radio calibration values at known fixed addresses so that when re-flashing the board, we can go find the existing values. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/megametrum: Support the four additional pyro channelsKeith Packard2012-07-14
| | | | | | These use the new pyro code to allow for some flexibility in programming. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Move profiling settings to MakefileKeith Packard2012-07-03
| | | | | | | Instead of splitting the changes across Makefile and ao_pins.h, put them both in Makefile to simplify enabling profiling. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Disable mag sensor for megametrumKeith Packard2012-06-27
| | | | | | | It doesn't work unless USB is connected or occasionally while the debug port is enabled. It's mystic. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: disable FEC debug on MMKeith Packard2012-06-27
| | | | | | | Seems to work; we'll leave the code around in case something bad happens later. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Clean up usage of port parametersKeith Packard2012-06-26
| | | | | | | | Make stm port parameters always be pointers; this avoids the confusion where some macros took '&port' and others took a bare 'port', and also unifies code to run on other processors in a consistent fashion. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Get cc1120 packet reception workingKeith Packard2012-06-25
| | | | | | Interrupt-per-bit, but it seems to work Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add telemetry to megametrumKeith Packard2012-06-17
| | | | | | Now that the radio works Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Start making cc1120 radio workKeith Packard2012-06-15
| | | | | | RDF tones and radio calibration work now. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Intgrate hmc5883 sensor into adc ringKeith Packard2012-06-02
| | | | | | | Creates a task to poll the mag sensor and place the data into the sensor data ring. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add support for MegaAccel daughter card.Keith Packard2012-06-01
| | | | | | | | | Switches all acceleration computation to using the MegaAccel accelerometer to ensure support for high-g flights. MPU6000 values continue to be logged as normal Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: megametrum has loggingKeith Packard2012-06-01
| | | | | | | This makes sure the various other subsystems know about it, like the 'v' command. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Data packet tick count does not live in adc structureKeith Packard2012-05-27
| | | | | | It was moved to the global structure. Having two is confusing. Signed-off-by: Keith Packard <keithp@keithp.com>
* Get megametrum ready to at least log flight dataKeith Packard2012-05-25
| | | | | | Doesn't track flight state changes correctly. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Finish ms5607 supportKeith Packard2012-05-18
| | | | | | | | | | This has the MS5607 polling once each tick for pressure and temperature and then saving that in a global variable. The command UI provides for dumping the prom data so that an eeprom file can have raw sensor data along with the conversion factors necessary to compute useful values. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add hmc5883 and mpu6000 drivers to megametrum buildKeith Packard2012-04-25
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Starting to write cc1120 driverKeith Packard2012-04-17
| | | | | | | This does "something" in radio test mode, appearing to generate a 730MHz signal. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Massive product config cleanupKeith Packard2012-04-14
| | | | | | | | Support multiple serial ports more cleanly Split out parts of ao.h into separate feature header files Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Use new USB driver in megametrum-v0.1 productKeith Packard2012-04-14
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add support for multiple SPI busses and sharing device driversKeith Packard2012-04-14
| | | | | | | | | | | | | | | | The STM32L151 has several SPI busses, and we want to use more than one, so add a 'bus' parameter to the SPI interfaces. To avoid wasting time on AVR and CC1111 processors which only use one SPI bus, elide those parameters from the actual functions by wrapping them with macros. Configuring chip select is now all macroized so that each chip can have its own version, allowing the STM to share the various SPI device drivers with the cc1111 and avr processors. Note that only the M25 driver has been ported; porting the others is 'trivial', but not necessary at this point. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Move MS5607 configuration to ao_pins.hKeith Packard2012-04-09
| | | | | | Which SPI port and where chip select is to be found are product specific. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make STM clock configuration per-product. Fix 32MHz CPU speedKeith Packard2012-04-09
| | | | | | | | | | This moves all of the STM clock configuration into ao_pins.h so that each product can configure it separately. While doing this, I discovered that the flash memory mode (64-bit, prefetch, latency 1) wasn't actually getting set, which is why the CPU refused to work at 32MHz. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add ADC support to megametrum firmwareKeith Packard2012-04-07
| | | | | | Measures all MM igniter and battery voltages. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add DMA, SPI and MS5607 driversKeith Packard2012-04-06
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Add preliminary MegaMetrum v0.1 supportKeith Packard2012-03-28
This turns on an LED, enables the internal R/C clock, hooks USART3 to the GPS chip and USART1 to the console. Signed-off-by: Keith Packard <keithp@keithp.com>