tp-freeforall / prod

TinyOS (less academic, more industrial, rD, less filling), still a floor wax
BSD 3-Clause "New" or "Revised" License
82 stars 37 forks source link

[MSP430] Can't use USCI A as SPI master #28

Closed tgtakaoka closed 6 years ago

tgtakaoka commented 6 years ago

Unfortunately current implementation of Msp430SpiNoDmaP.nc uses HplMsp430UsciB as USCI interface, and it works only for USCI B. If we choose USCI A as SPI channel, it ends up an error since it is incompatible with Msp430SpiA0NoDmaP.nc.

To solve this, we may want to refactor Msp430UsciA and Msp430UsciB interfaces into four, lets say, Msp430Usci, Msp430UsciSpi, Msp430UsciUart, and Msp430UsciI2C.

WDYT?

cire831 commented 6 years ago

fixed by 5f9b2bf27b0e1c4ecd5a0845a7731eef640947aa