summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* altos: Add startup and config (view only) pages to TTKeith Packard2011-11-12
| | | | | | The config page needs a pile of work before it's useful. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Enable packet master and debug in TTKeith Packard2011-11-12
| | | | | | The code was already getting linked in, so we might as well use it. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix sdcdb settings for telemetrum v1.0Keith Packard2011-11-12
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Trim skytraq NMEA messages. Shrink NMEA header matching codeKeith Packard2011-11-12
| | | | | | | | | | Tell the skytraq to not bother sending a bunch of the NMEA messages that we don't parse. Explicitly look for 'G' follows by 'P' instead of having some general header matching code. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Allow TT/TBT reports to escape landed stateKeith Packard2011-11-12
| | | | | | | The TM altitude reporting code kept beeping out state and altitude forever, which isn't very useful on TBT or TT. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Remove LCD debugging codeKeith Packard2011-11-12
| | | | | | This isn't needed anymore. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add ao_lcd_cursor_on/offKeith Packard2011-11-12
| | | | | | This shows or hides a blinking cursor on the LCD. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add configurable set of channels for TTKeith Packard2011-11-12
| | | | | | | This adds the channel list for TT, which will be configured by AltosUI. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Export 'ao_cmd_is_white' for use by other codeKeith Packard2011-11-12
| | | | | | This function tests the current input character. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Set default flight log max to 127k on TM v0.1Keith Packard2011-11-12
| | | | | | The flash part on v0.1 boards is only 128kB. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Handle internal and external telem monitoring requestsKeith Packard2011-11-12
| | | | | | | | | | | | Record separate internal vs external monitoring state, allowing both to happen at the same time, and when either is turned off, the other keeps working. This also adds disable/enable so that other radio users can temporarily take over the radio; monitoring will resume when the other radio user is finished. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Check pdata+xdata memory usage during buildKeith Packard2011-11-12
| | | | | | | | | | | The sdcc linker doesn't check the sum of pdata+xdata memory usage, it only ensures that xdata itself is small enough. This doesn't keep xdata below the end of usable ram on the cc1111 though (0xfe000). Fix up the check-stack program to also make sure all of xdata fits in available memory. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Set SPI fill value each time it is used.Keith Packard2011-11-12
| | | | | | | This ensures that the final MOSI pin value will be high after a receive is finished. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Initialize DMA config address at boot timeKeith Packard2011-11-12
| | | | | | | Instead of resetting these each time a transfer is started, just set them once at boot time. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: debounce buttonsKeith Packard2011-11-12
| | | | | | | Provide API to clear out any button events that happen during startup, and then discard button events 'too close' together. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Build TeleTerra v0.2 by defaultKeith Packard2011-11-12
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make ao_xmem funcs require __xdata void * instead of castingKeith Packard2011-11-11
| | | | | | | | | | | | Having an explicit cast in the ao_xmem wrapper macros caused the compiler to generate garbage values for pdata addresses, making the upper byte 0x00 instead of the required 0xf0. Removing the casts from the ao_xmem macros exposed this problem, so a new PDATA_TO_XDATA macros was added, along with a CODE_TO_XDATA macro which serve to cast pointers, with suitable address modifications, so that things work again. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Shrink Skytraq NMEA parsing - common nmea_finish codeKeith Packard2011-11-11
| | | | | | | This shares the checksum testing across all three lines, saving another 103 bytes. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: shrink Skytraq NMEA parsing moreKeith Packard2011-11-11
| | | | | | This cuts another 78 bytes Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Shrink code size of Skytraq NMEA parserKeith Packard2011-11-11
| | | | | | | Just mess around with the code to make it smaller. These patches save 173 bytes. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: A bunch of missing .gitignore files (mostly)Keith Packard2011-10-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add i2c driver for avr chipKeith Packard2011-10-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix distance/bearing computations. Deal with large valuesKeith Packard2011-10-27
| | | | | | | | | | Lots of little math errors dealing with large distances; easily tested as the GPS currently reports lat 24 lon 121, which is a long ways from Portland. Now reports distances in km when large, otherwise in m. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Bring up basic TeleTerra v0.2 UImultiarchKeith Packard2011-10-26
| | | | | | Lots of fun stuff here -- multiple panes of information. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Flip button IRQ initialization aroundKeith Packard2011-10-23
| | | | | | This matches what the docs suggest Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix battery voltage computation.Keith Packard2011-10-23
| | | | | | Full scale is 4.95V, not 3.333V. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add battery voltage sampling driverKeith Packard2011-10-23
| | | | | | | For devices without a full ADC compliment, this just samples the battery pin and converts to mV. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add button driver and sample userKeith Packard2011-10-23
| | | | | | Hook up the teleterra buttons and have them beep Signed-off-by: Keith Packard <keithp@keithp.com>
* src/teleterra-v0.2: Initialize more hardwareKeith Packard2011-10-23
| | | | | | Initialize the flash storage and flight state reporting beeper. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/teleterra_0_2: Initialize LCD driverKeith Packard2011-10-23
| | | | | | Initialize the LCD for testing. Signed-off-by: Keith Packard <keithp@keithp.com>
* src/teleballoon-v1.1: Use Tm style initial state stuffKeith Packard2011-10-21
| | | | | | Come up in pad mode unless someone talks to us while in idle mode. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add teleballoon-v1.1 directoryKeith Packard2011-10-21
| | | | | | This is an alternate firmware load for telemetrum v1.1. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add LEGACY_MONITOR defines to more programsKeith Packard2011-10-15
| | | | | | | Make all monitoring programs define whether they want all of the old telemetry formats too. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add TeleTerra v0.2 productKeith Packard2011-10-11
| | | | | | This includes most of the necessary drivers. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: oops -- forgot to add the cc1111 string codeKeith Packard2011-10-11
| | | | | | | This is required for all cc1111 builds now; it provides xdata string functions. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Split out arch-specific bits of LCD driverKeith Packard2011-10-11
| | | | | | The arch-specific section just puts a single nibble to the device. Signed-off-by: Keith Packard <keithp@keithp.com>
* Bump to 1.0.9.31.0.9.3Keith Packard2011-10-11
| | | | | | TeleScience and TelePyro now work. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telescience: Add more header dependenciesKeith Packard2011-10-11
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/avr: telescience doesn't have room for the flash write codeKeith Packard2011-10-11
| | | | | | | This is useful for debugging the SPI and flash drivers, but not necessary in production code. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/avr: Must leave space for init stack in ramKeith Packard2011-10-11
| | | | | | | The stack used during system initialization lives at the top of RAM, so leave some space for that. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/avr: Shrink default stack size to use less ramKeith Packard2011-10-11
| | | | | | | Not that we have any way of knowing how much stack we're using, but at least this seems to work. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Allow ao_science_slave to not log dataKeith Packard2011-10-11
| | | | | | This is mostly for debugging with flash writes disabled. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make HAS_STORAGE_DEBUG define consistentKeith Packard2011-10-11
| | | | | | | This allows products to include the 'w' command for testing flash writing as needed. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/avr: Clear SPI receive buffer before clocking new data inKeith Packard2011-10-11
| | | | | | | I don't know why this is necessary, but the receive buffer gets 'extra' data added somehow. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/avr: Pull-up on the SPI slave select pinKeith Packard2011-10-11
| | | | | | This makes the board work even when disconnected from TeleMetrum. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/avr: Register stdio handler when using serial for stdinKeith Packard2011-10-11
| | | | | | This code was left in a bit of a mess; just clean it up. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/avr: telescience does not have a serial portKeith Packard2011-10-11
| | | | | | The USART is used for SPI to talk to the flash part. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/avr: Make ao_arch_critical argument be a statementKeith Packard2011-10-11
| | | | | | | Wrap the argument to ao_arch_critical in do { } while (0); to make sure it gets correctly checked as a statement. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/avr: Print newline after dumping ADC valuesKeith Packard2011-10-11
| | | | | | Cleans up the formating a bit. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/avr: SPI mutex is now held by the caller, not the SPI driverKeith Packard2011-10-11
| | | | | | | | | SPI transactions generally require a read followed by a write, with the chip select held the whole time. As a result, the SPI bus must be held across multiple transactions. To make this reliable, the caller must hold the SPI mutex, instead of the underlying SPI driver. Signed-off-by: Keith Packard <keithp@keithp.com>