summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* | 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>
* | altos: Fix ao_delay function and move from per-chip code to ao_task.cKeith Packard2012-08-28
| | | | | | | | | | | | | | ao_delay hasn't been chip-specific for a long time, and it had a bug in not calling ao_clear_alarm. Signed-off-by: Keith Packard <keithp@keithp.com>
* | ao-stmload: Always round up load amount to 4 byte boundaryKeith Packard2012-08-28
| | | | | | | | | | | | The flashing code doesn't deal with partial writes. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Enable STM SYSCFG when routing EXTIKeith Packard2012-08-28
| | | | | | | | | | | | | | The EXTI routing information is in the syscfg unit, so that needs to be powered up or writes to its registers will be lost. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: No need to initialize EXTI priorities at startup timeKeith Packard2012-08-28
| | | | | | | | | | | | They all get set to the correct value when enabled. Signed-off-by: Keith Packard <keithp@keithp.com>
* | Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altosBdale Garbee2012-08-28
|\ \ | | | | | | | | | | | | Conflicts: debian/control
| * | altos: Add spiradio productKeith Packard2012-08-27
| | | | | | | | | | | | | | | | | | Implements the SPI radio protocol Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: sdcdb rc file for telefireKeith Packard2012-08-27
| | | | | | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: Add SPI linked radio APIKeith Packard2012-08-27
| | | | | | | | | | | | | | | | | | Forward the necessary radio functions over the SPI link Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: Clean up radio APIsKeith Packard2012-08-27
| | | | | | | | | | | | | | | | | | | | | Move api to ao_radio_cmac.h include file. Expose ao_radio_test as standard API. Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: Build telelco and spiradio when possibleKeith Packard2012-08-27
| | | | | | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: Expose a signed version of the tick countKeith Packard2012-08-27
| | | | | | | | | | | | | | | | | | Useful when doing time comparisons. Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: Specify the LCD duty cycle for stm-demoKeith Packard2012-08-27
| | | | | | | | | | | | | | | | | | This is the demo for the large 7-segment displays and needs static drive Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: Test multiple quadrature devices. Export quadrature count.Keith Packard2012-08-27
| | | | | | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: Seven segment display driverKeith Packard2012-08-27
| | | | | | | | | | | | | | | | | | Hex numbers and the decimal point. Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: More SPI slave changes for cc1111 driverKeith Packard2012-08-27
| | | | | | | | | | | | | | | | | | Don't enable DMA in the other direction when doing slave transfers. Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: Add SPI slave get/put macros to cc1111Keith Packard2012-08-27
| | | | | | | | | | | | | | | | | | Theese don't try to drive the chip select line Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: Provide interface for STM LCD driver.Keith Packard2012-08-27
| | | | | | | | | | | | | | | | | | | | | | | | This provides a simple function interface for driving the LCD segments in the STM chip. It also uses the update complete interrupt to block LCD users during flush. Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: Rename drivers/ao_lco to drivers/ao_lco_cmdKeith Packard2012-08-27
| | | | | | | | | | | | | | | | | | | | | | | | These contain command line functions for testing the cmac and lco features. Now that there's a telelco-specific ao_lco interface file, it's useful to have both for testing. 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: Shrink STM stack sizeKeith Packard2012-08-26
| | | | | | | | | | | | | | | | | | 512 bytes should be enough for anybody. Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: Make ao_cur_task_index track ao_cur_task in ao_yieldKeith Packard2012-08-26
| | | | | | | | | | | | | | | | | | | | | | | | This keeps the two main task references (index and pointer) in agreement during task switching, avoiding an extra assignment at the end of the task switching loop. Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: Make 'pad' driver useful with telefire v0.1Keith Packard2012-08-26
| | | | | | | | | | | | | | | | | | | | | | | | This reports correct status bits over the radio and to the LEDs for all four channels, and also makes the firing test command control all four relays. Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: Add debug command for 74hc597 driverKeith Packard2012-08-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | This dumps the current state of the 74hc597 chip. Note that this shows that the 74hc597 driver doesn't work, and that the circuit used in telefire v0.1 can't work. Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: Allow sharing of radio DMA with aes engineKeith Packard2012-08-26
| | | | | | | | | | | | | | | | | | otherwise, telefire doesn't have enough DMA channels. Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: Configure telefire SPI and LEDs correctlyKeith Packard2012-08-24
| | | | | | | | | | | | | | | | | | | | | This places the telefire SPI bus on USART1 option 2 and marks the various LED functions with symbolic names. Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: telelaunch doesn't need ao_radio_cmac_initKeith Packard2012-08-24
| | | | | | | | | | | | | | | | | | | | | | | | This function was used to initialize the LCO functions, which were moved to ao_lco.c a few commits back, so ao_radio_cmac_init doesn't even exist anymore. Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: Get ao_pad.c working on telefire v0.1Keith Packard2012-08-24
| | | | | | | | | | | | | | | | | | | | | Monitor all four channels, allow any channel to be fired. Turn on power LED at startup time. Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: Split out LCO functions from ao_radio_cmac.c to ao_lco.cKeith Packard2012-08-24
| | | | | | | | | | | | | | | | | | | | | These functions are not used in the telelaunch or telefire nodes, so don't force them to be included. Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: Have radio_cmac turn on LEDs as appropriateKeith Packard2012-08-24
| | | | | | | | | | | | | | | | | | | | | Use AO_LED_RX and AO_LED_TX defines if present to control LEDs during radio operations. Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: Add 'ao_led_set_mask' in the PCA9922 driverKeith Packard2012-08-24
| | | | | | | | | | | | | | | | | | This lets a subset of the LEDs be controlled independent of other LED settings. Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: Make cc1111 SPI pins configurableKeith Packard2012-08-24
| | | | | | | | | | | | | | | | | | | | | Allow either USART in any configuration. Still only supports one SPI bus though. Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: Disable telefire 'pad' listener when testing radioKeith Packard2012-08-24
| | | | | | | | | | | | | | | | | | | | | Ensures that the radio testing won't block waiting for a firing mode packet to arrive. Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altosui: Check for JRE 1.7 in Windows installerKeith Packard2012-08-19
| | | | | | | | | | | | | | | | | | | | | | | | altosui runs fine with version 1.7 (on Linux at least), so allow that version to satisfy the java check instead of requiring the user to down-grade to 1.6 Signed-off-by: Keith Packard <keithp@keithp.com>
| * | Here's the button driver and event queue logicKeith Packard2012-08-18
| | | | | | | | | | | | | | | | | | These were neglected in the commit which was supposed to include them 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/cc1111: Document SPI bus pin optionsKeith Packard2012-08-18
| | | | | | | | | | | | | | | | | | Just a comment in the source code about which pins each option selects. Signed-off-by: Keith Packard <keithp@keithp.com>
| * | altos: Use split SPI bus for MS5607 sensorKeith Packard2012-08-18
| | | | | | | | | | | | | | | | | | | | | Leave CS low while releasing the SPI bus when waiting for conversion complete -- other SPI bus users will use another set of pins. 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>
| * | ao-send-telem: make --realtime workMike Beattie2012-08-08
| | | | | | | | | | | | | | | | | | (add "break;" to the case statement for options) Signed-off-by: Mike Beattie <mike@ethernal.org>