]> oss.titaniummirror.com Git - tinyos-2.x.git/commit
Implement chip select query for SPI peripheral.
authorsmckown <smckown@4bc1554a-c7f2-4f65-a403-e0be01f0239c>
Fri, 8 May 2009 22:27:14 +0000 (22:27 +0000)
committerR. Steve McKown <rsmckown@gmail.com>
Tue, 1 Dec 2009 03:01:32 +0000 (20:01 -0700)
commit5592947363b1fa4dc67880c1d12d83866a49ddb9
tree991b022dedcc84a35b97bc4a6574de16b894b37b
parent99bb39ae4d142b23449ded1d57cb8a8fdeeae329
Implement chip select query for SPI peripheral.

If the SPI peripheral is in slave mode, a transaction could be halted at any
time by the host unasserting (high) the chip select line.  This code implements
a check on chip select to allow SPI slaves to see the early abort and act
accordingly.
tos/chips/msp430/usci/Msp430SpiA0C.nc
tos/chips/msp430/usci/Msp430SpiB0C.nc
tos/chips/msp430/usci/Msp430SpiB1C.nc
tos/chips/msp430/usci/Msp430SpiP.nc