summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* altos: Wait after configuring boot pin before testing itKeith Packard2013-04-28
| | | | | | | | Clearly the pin isn't quite ready just after it's been configured, so hang around for a while (100 nops) to let things setting down before testing the value of the pin. Makes booting a lot more reliable. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Clear any broken cc1120 TX fifo bits before transmittingKeith Packard2013-04-28
| | | | | | | | This just goes and clears the transmitter before using it, just in case it got wedged somehow. It also clears the bits while waiting for the radio to go idle, otherwise it'd never make it. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make cc1120 driver wait for TX finishedKeith Packard2013-04-28
| | | | | | | | | | Otherwise, we may come in and try to use the radio again too quickly, causing it to go into a TX fifo error state. This change watches the MARC status until the transmitter is explicitly marked as finished. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Provide timeout value to ao_radio_recvKeith Packard2013-04-28
| | | | | | | | | Instead of using ao_alarm around calls to ao_radio_recv, provide an explicit timeout value as needed by radio functions with more complicated system interaction than the cc1111. The timeout is 8 bits of clock ticks. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Build test framework for AES codeKeith Packard2013-04-28
| | | | | | Simple CBC-CMAC test with a constant 0 key and constant 0 data for now. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make telemega-v0.3 binary use the right nameKeith Packard2013-04-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm: Create per-product flash loadersKeith Packard2013-04-27
| | | | | | | Split the flash loader prototype into pieces so that each product can build a custom flash loader with very little code. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add ao_boot_chain to telemega v0.3Keith Packard2013-04-27
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge branch 'master' into stm-flashKeith Packard2013-04-27
|\
| * altos: All STM ADC users need to declare HAS_ADC_TEMPKeith Packard2013-04-27
| | | | | | | | | | | | Otherwise we can't configure the ADC unit correctly at boot time Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Build telemega-v0.3 by defaultKeith Packard2013-04-27
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* | Merge branch 'master' into stm-flashKeith Packard2013-04-27
|\|
| * altos: Add TeleMega v0.3 supportKeith Packard2013-04-25
| | | | | | | | | | | | Includes adding SPI support to the MPU6000 driver Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Add MR25 everspin MRAM driverKeith Packard2013-04-25
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Make SD card driver compile without radio supportKeith Packard2013-04-25
| | | | | | | | | | | | | | | | The SD card driver blocks the radio when trying to access the card as that operation appears very sensitive to RFI. This fix makes the driver work when there *isn't* a radio driver in the same device. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Remove stdio from stm-flashKeith Packard2013-04-27
| | | | | | | | | | | | This saves enough memory to fit in under 4kB Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Get rodata into flash, make sure sections are alignedKeith Packard2013-04-27
| | | | | | | | | | | | | | | | .rodata* needs to be in flash; otherwise strings get left in ram. Failing to align sections makes the initialized data get dumped into the wrong place in memory. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Make stm-bringup build againKeith Packard2013-04-27
| | | | | | | | | | | | stm requires AO_BOOT_LOADER_BASE now Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Run self loader when application sets boot addr to 0Keith Packard2013-04-27
| | | | | | | | | | | | | | This causes the flash loader startup code to fall into the loader when the application sets the boot address to zero. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Allow STM usb driver to be used without stdioKeith Packard2013-04-27
| | | | | | | | | | | | | | This lets the self flashing loader be linked without any of the stdio code, which saves a bunch of memory. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stm-flash: Check target flash address against AO_BOOT_APPLICATION_BASEKeith Packard2013-04-22
| | | | | | | | | | | | Allows that value to change Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Use flash loader on all STM productsKeith Packard2013-04-22
| | | | | | | | | | | | Includes the boot chain stuff Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stm: Provide another 4kB of flash space for appsKeith Packard2013-04-22
| | | | | | | | | | | | With the flash loader now < 4kB, we can use the spare 4kB for applications Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stm: Shrink stm flash loader to < 4kBKeith Packard2013-04-22
| | | | | | | | | | | | Saves 4kB of flash space for applications. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stm: Allow core timer to be excluded from buildKeith Packard2013-04-22
| | | | | | | | | | | | | | This removes all of the support for the base 100Hz timer from the system, saving space when not needed Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stm: Don't define task macros when not taskingKeith Packard2013-04-22
| | | | | | | | | | | | The necessary data structures aren't defined in this case. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Eliminate stdio looping when system has a single stdio sourceKeith Packard2013-04-22
| | | | | | | | | | | | No need to loop if there's only one Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Move ao_notask to coreKeith Packard2013-04-22
| | | | | | | | | | | | | | The STM flash loader wants to be taskless too, share this very simple implementation of sleep/wakeup. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stm: Remove USB EP0 taskKeith Packard2013-04-22
| | | | | | | | | | | | | | Handl EP0 actions from interrupt handler. This allows USB to be used in a taskless environment, like the STM flash loader Signed-off-by: Keith Packard <keithp@keithp.com>
* | Merge branch 'master' into stm-flashKeith Packard2013-04-22
|\| | | | | | | | | Conflicts: ao-tools/ao-stmload/ao-stmload.c
| * altos: Re-generate TeleMega bitsKeith Packard2013-04-22
| | | | | | | | | | | | Lost in the great megametrum rename Signed-off-by: Keith Packard <keithp@keithp.com>
| * name change from MegaMetrum to TeleMegaBdale Garbee2013-04-22
| |
| * Move cortex toolchain to /opt/cortexKeith Packard2013-04-22
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: update .gitignore filesMike Beattie2013-04-22
| | | | | | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
| * document my snazzy new 4-pin to MM v0.1 debug cableBdale Garbee2013-04-20
| |
| * altos: Make sure the packet format is set reasonably for radio testKeith Packard2013-04-12
| | | | | | | | | | | | Dunno if this matters, but it might as well be set reasonably Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Don't include bufio debug commands by defaultKeith Packard2013-04-12
| | | | | | | | | | | | We shouldn't need these Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Stick a mutex around FAT operationsKeith Packard2013-04-12
| | | | | | | | | | | | This allows the command line and logging operations to occur safely in parallel Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Delay while waking up SD card a bitKeith Packard2013-04-12
| | | | | | | | | | | | | | | | This seems to make bringing the card from idle to ready mode more reliable. If you spam the card with requests, it will eventually whinge and shut down communications. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altoslib/altosui: Carry receiver status around in AltosListenerStateKeith Packard2013-04-09
| | | | | | | | | | | | | | | | | | | | This moves the crc_errors into the new structure and adds a receiver battery voltage value there as well. Now the receiver status can be monitored separately from the flight status. That also means that code receiving state updates should be prepared to accept missing listener or flight state values. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Monitor battery voltage on telebtKeith Packard2013-04-09
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Create telebt-v1.0 product. Remove old telebt productsKeith Packard2013-04-08
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Try RDF mode for TX calibrationKeith Packard2013-04-06
| | | | | | | | | | | | | | | | Trying to get the radio to stop modulating the carrier when calibrating the radio, we'll try RDF mode which says no preamble or sync data. This might shift the frequency though? Signed-off-by: Keith Packard <keithp@keithp.com>
| * Set telegps USB id to 0025Keith Packard2013-04-02
| | | | | | | | | | | | It was accidentally using the same ID as megadongle... Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Shorten SD initialization timeouts.Keith Packard2013-04-02
| | | | | | | | | | | | This makes failure when no card is present much quicker. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Horrible kludge -- disable radio while talking with SD cardKeith Packard2013-04-01
| | | | | | | | | | | | | | The SD card really doesn't like the RFI generated by our enormous radio, so just lock the radio out while working with the card. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Add defines for the specific pins used for telegps SPIKeith Packard2013-04-01
| | | | | | | | | | | | These aren't needed at this point, but who knows? Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Retry SD card I/O. Use time for timeouts instead of countsKeith Packard2013-04-01
| | | | | | | | | | | | | | | | | | | | Sometimes I/O operations may fail; give the card a chance and retry the operation in case it works the next time. Replace the loop counts with loops that check the clock so that they'll have consistent timeouts even if the CPU or SPI speed changes. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Provide build hooks for sampling profiler in telegpsKeith Packard2013-04-01
| | | | | | | | | | | | Might prove useful if the CPU is ever doing anything? Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Add a FAT test that re-writes the same file multiple timesKeith Packard2013-04-01
| | | | | | | | | | | | This caught a bunch of FAT cluster chain allocation bugs. Signed-off-by: Keith Packard <keithp@keithp.com>