X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Fplatforms%2Ftmirws%2Fchips%2Fscp1000%2FScp1000SpiConfigC.nc;h=91314a6e4324cef264982ee3f8b56cdec0424748;hp=ffe7e7957c6bf5edb6900b35a7046855d3a5764f;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400 diff --git a/tos/platforms/tmirws/chips/scp1000/Scp1000SpiConfigC.nc b/tos/platforms/tmirws/chips/scp1000/Scp1000SpiConfigC.nc index ffe7e795..91314a6e 100644 --- a/tos/platforms/tmirws/chips/scp1000/Scp1000SpiConfigC.nc +++ b/tos/platforms/tmirws/chips/scp1000/Scp1000SpiConfigC.nc @@ -26,18 +26,18 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - + /** * SPI configuration for Scp1000. - * + * * @author R. Steve McKown */ - + module Scp1000SpiConfigC { provides interface AsyncConfigure as Configure; } implementation { - const static msp430_usci_spi_t def = { + const static msp430_usci_spi_t def = { ctl0: UCSYNC | UCMODE_0 | UCMST | UCMSB | UCCKPL, /* SPI mode0 master, MSB first */ ctl1: UCSWRST | UCSSEL_3, /* clock spi from SMCLK */ brx: 2, /* part says max 500KHz; this is 524288Hz */