summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* And, also add the TeleBT v3.0 flash loader MakefileKeith Packard2015-01-30
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Oops, forgot the TeleBT-v3.0 MakefileKeith Packard2015-01-30
| | | | | | | git doesn't warn about files named 'Makefile' because they're supposed to be generated... Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Re-implement fast ADC code for stmf0Keith Packard2015-01-27
| | | | | | | This creates a ring buffer for ADC data so that ADC fetching can run in parallel with other activities. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/usbtrng-v2.0: Use stmf042 hardware CRC unitKeith Packard2015-01-27
| | | | | | | Switch from software to hardware for CRC computation. I think this must be faster, right? Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Add CRC driverKeith Packard2015-01-27
| | | | | | | Sets up the stm32f0 CRC hardware, exposing inline functions to access it. DMA access is possible, but usbtrng can't use that. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Remove remaining stm32l bits from stm32f0 codeKeith Packard2015-01-27
| | | | | | | These were left over from the stm32f0 initial implementation work; now it's more useful to list only the bits which are valid. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Add ao-usbtrng to dump RNG data for testingKeith Packard2015-01-26
| | | | | | | ao-usbtrng reads a specified number of kilobytes of random data from a random number generator. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm: Fix typo in stm32l.hKeith Packard2015-01-26
| | | | | | This crept in while working on the stmf0 bits. oops. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/usbtrng-v2.0: Add random output commandKeith Packard2015-01-26
| | | | | | | | Read chunks of random ADC data, do some CRC16 computations to de-bias and merge 4 bytes of input data into 2 bytes of output data, then dump that out over USB. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Add ADC and DMA APIsKeith Packard2015-01-26
| | | | | | | The ADC api is what USBtrng wants; a way to repeatedly read a single ADC input as fast as possible. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Add faster USB pathKeith Packard2015-01-26
| | | | | | | | This adds a way to allocate private USB buffers for sending data without needing to copy it again. It requires ensuring that all accesses are 16 bits aligned to 16 bit boundaries. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Fix linker scripts to make ao_boot workKeith Packard2015-01-26
| | | | | | | | The flash loader ended up assuming ao_boot was at the start of ram, while the application stuck it after the interrupt table (where it needs to go). Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Add --wait option to ao-usbloadKeith Packard2015-01-25
| | | | | | | This waits forever for USB writes to complete, instead of timing out after five seconds. Useful when debugging the device. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add flash-loader to usbtrng-v2.0Keith Packard2015-01-25
| | | | | | Uses the new STM32F042 flash loading bits. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add self-flash support for STM32F042 processorKeith Packard2015-01-25
| | | | | | | Also moves the usual address for applications out of the way of the flash loader. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: USBtrng v2.0 hardware bringupKeith Packard2015-01-25
| | | | | | Gets the USB connection running and blinks the LEDs. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Initial STMF04x supportKeith Packard2015-01-25
| | | | | | Basic clock configuration, OS support, LED and USB drivers. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add support for TeleBT v3.0Keith Packard2015-01-24
| | | | | | | Add support to the BTM driver for non-CC1111 interrupts Add HW flow control to STM serial driver Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Fix double-buffered USB changesKeith Packard2015-01-22
| | | | | | | | These got merged when we were down in Auckland, but before they'd been finished. Transmitting worked fine, but receiving was mis-configuring the OUT buffer size in the hardware. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Get rid of some accidental debug codeKeith Packard2015-01-22
| | | | | | | I was debugging the accelerometer calibration code and left some printfs in it, which made TM run out of flash space. Signed-off-by: Keith Packard <keithp@keithp.com>
* Set version to 1.5.9.11.5.9.1Keith Packard2015-01-16
|
* altos/lpc: Switch LPC SPI driver to interrupt-drivenbdale-altosdroidKeith Packard2014-12-22
| | | | | | | This improves performance for SPI transfers, while allowing other tasks to get work done during longer SPI transfers. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Adjust CC1200 RSSI reporting valueKeith Packard2014-12-22
| | | | | | | | | On the test setup, we were about 13dB off, so tweak the settings to suit. This result wasn't tested; it's just a rough offset until we get a production run of TeleDongle boards back to do more systematic measurements. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Document cc115l power measured at RF setting 0x03 as -31.75dBmKeith Packard2014-12-22
| | | | | | | | We built a custom TeleGPS load for radio sensitivity measurements with the lowest documented power level setting (0x03), and measured the power out at that value of -31.75dBm on the test board. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-bringup: Clear pending output before setting frequency.Keith Packard2014-12-09
| | | | | | Maybe this will unwedge things Signed-off-by: Keith Packard <keithp@keithp.com>
* micropeak: Support µPUSB with our own USB idsKeith Packard2014-12-06
| | | | | | This matches the new µPUSB id as well as the FTDI USB id. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add usbtrng, usbrelay and mpusb USB idsKeith Packard2014-12-06
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altosBdale Garbee2014-12-06
|\
| * altos/cc1200: With PQT wide open, we can't use PQT_REACHED for startKeith Packard2014-11-23
| | | | | | | | | | | | | | | | | | Because we're allowing even signals only weakly correlated with the preamble through to sync detection, we can't use the PQT_REACHED symbol to tell when a packet header has been seen. Instead, just look for SYNC_FOUND. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/cc1200: Open up preamble detect to improve sensitivityKeith Packard2014-11-23
| | | | | | | | | | | | | | Increase soft decision PQT value to max (15) to ensure that we detect even weak packets. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/cc1200: Wait for packet to be placed in FIFO during receiveKeith Packard2014-11-23
| | | | | | | | | | | | | | | | | | | | | | | | | | This changes the receive code to use MCU_STATUS, waiting for MARC_STATUS1 to indicate that the packet is in the fifo before reading it out. It also fixes the receive timeout code to keep receiving if the preamble or sync have been seen when the timeout fires. This makes TeleLCO able to use short timeouts during scanning while still successfully receiving packets. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/teledongle-v1.8: Make this the same as teledongle v1.9Keith Packard2014-11-16
| | | | | | | | | | | | Remove RSSI LED blinking, add CRC error LED Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Allow TeleMega to be built without MPU6000Keith Packard2014-11-16
| | | | | | | | | | | | | | Robert Braibish's board has a dead MPU6000; this fix lets the TeleMega firmware build without that driver so the rest of the board could be verified. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altosui: Remove duplicate AltosUIPreferencesBackend.javaKeith Packard2014-11-16
| | | | | | | | | | | | There's a copy in altosuilib Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/microsplash: fix .gitignore to ignore resulting binaryKeith Packard2014-11-16
| |
| * Add AltosDroid release note for version 1.5Keith Packard2014-11-16
| |
| * altosdroid: East and West were flipped in all GPS outputKeith Packard2014-11-16
| | | | | | | | | | | | East is positive, West is negative Signed-off-by: Keith Packard <keithp@keithp.com>
| * altosdroid: Save AltosState and restore at startupKeith Packard2014-11-15
| | | | | | | | | | | | | | | | | | Instead of re-parsing the old logfile, save the current state in the preferences database and restore at restart of the TelemetryService. This makes the state get restored even before the BT connection is recovered. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altoslib: add AltosPreferences state save/restore interfacesKeith Packard2014-11-15
| | | | | | | | | | | | | | | | This serializes an entire AltosState object and stores it in the preferences database for later retrieval. AltosDroid uses this to recover the old state data when restarting. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altosdroid: TabMap needs to expose () constructorKeith Packard2014-11-15
| | | | | | | | | | | | Otherwise we get an exception at startup time for some reason. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altoslib: Add getBytes/putBytes interface to AltosPreferencesBackendKeith Packard2014-11-15
| | | | | | | | | | | | This lets us store arbitrary binary data in the preferences database Signed-off-by: Keith Packard <keithp@keithp.com>
| * altosdroid: Don't display MISSING flight numberKeith Packard2014-11-15
| | | | | | | | | | | | Just check and clear the entry if we end up seeing that value Signed-off-by: Keith Packard <keithp@keithp.com>
| * altoslib: Make AltosState serializableKeith Packard2014-11-15
| | | | | | | | | | | | This involved making every class it references serializable as well Signed-off-by: Keith Packard <keithp@keithp.com>
| * altoslib: Missing headers for mag sensor in CSV outputKeith Packard2014-11-10
| | | | | | | | | | | | | | Kelsey Black <nmonic@gmail.com> reported that the TeleMega CSV output was missing the header labels for the mag sensor data. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Reset interrupt flags before TX in CC1200 driverKeith Packard2014-11-06
| | | | | | | | | | | | | | Failing to reset the flags set during interrupt leads to short-circuiting transmission and not a lot of packets going out. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/teledongle-v1.9: Switch to NXP processor as on prototype boardsKeith Packard2014-11-06
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/lpc: Disable JTAG when using pins for GPIOKeith Packard2014-11-06
| | | | | | | | | | | | | | JTAG is enabled by default, making those pins not support GPIO unless specifically configured. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/lpc: Declare SPI send parameters as constKeith Packard2014-11-06
| | | | | | | | | | | | This matches STM Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Use other TeleDongle LED for CRC-invalid packet reportingKeith Packard2014-11-06
| | | | | | | | | | | | | | Instead of blinking out some fake-o RSSI indication, just blink the red LED when a packet with a bad CRC is received. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altosuilib: GPS errors are recorded in floating point, not integersKeith Packard2014-11-06
| | | | | | | | | | | | Fix the format used to present them in the info table. Signed-off-by: Keith Packard <keithp@keithp.com>