osd-contiki/platform/cc2538dk/dev
Brad Campbell af27d2d252 [CC2538-SPI] Implement SPI_FLUSH, spi mode, !CS
Because the CC2538 has a multi-byte SPI RX FIFO, flushing the buffer
requires more than just a single read. This adds a loop that empties the
entire RX buffer on a FLUSH().

Different SPI chips needs different SPI settings. This commit adds a
function that allows chip drivers to configure the SPI peripheral before
using it.

The frame pin the driver was using as a chip select does not work as
most devices expect it to. It toggles after every byte, and most chips
interpret that as end of message. To make drivers more reliable, each
chip driver should setup a GPIO and assert it as needed.
2014-04-15 14:07:10 -04:00
..
adc-sensor.c cc2538: Add adc driver and example 2013-12-06 22:07:45 +01:00
adc-sensor.h cc2538: Add adc driver and example 2013-12-06 22:07:45 +01:00
board.h [CC2538-SPI] Implement SPI_FLUSH, spi mode, !CS 2014-04-15 14:07:10 -04:00
button-sensor.c cc2538: Clean up port and pin definitions 2013-11-25 15:00:41 +01:00
button-sensor.h New Platform: TI CC2538 Development Kit 2013-04-06 21:07:31 +01:00
leds-arch.c cc2538: gpio: Use accessor macros 2013-11-15 19:57:44 +01:00
smartrf-sensors.c cc2538: Add adc driver and example 2013-12-06 22:07:45 +01:00