summaryrefslogtreecommitdiff
path: root/src/cc1111/ao_spi.c
Commit message (Collapse)AuthorAge
* altos/teletiny-v2.0: Support multiple SPI busses on CC1111Keith Packard2013-08-25
| | | | | | Needed for TeleMini v2.0 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: 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: 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: 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/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>
* src/cc1111: Enable SPI slave modeKeith Packard2012-08-05
| | | | | | This is untested... 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: 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: Restructure altos build to prepare for multi-arch supportKeith Packard2011-08-25
Split out sources into separate directories: core: architecture and product independent bits cc1111: cc1111-specific code drivers: architecture independent drivers product: product-specific sources and Makefile fragments util: scripts for building stuff This should have no effect on the built products, but testing is encouraged Signed-off-by: Keith Packard <keithp@keithp.com>