[Tinyos-devel] Tinyos 2.0 - MSP430 Spi Wiring

Jonathan Hui jwhui at cs.berkeley.edu
Fri Aug 4 09:20:58 PDT 2006


On 8/4/06, Max CORTIANA <max.cortiana at st.com> wrote:
> My question is: Why the module is directly connecting to USART0 Hardware
> Presentation Layer?

Only one Msp430SpiP component is instantiated for the USART0 bus. It
uses HplMsp430Usart0C to implement the SpiByte and SpiPacket
interfaces.

It won't work to have the generic component Msp430SpiNoDma0P use the
Hpl interface and have each client wire it up. Doing so will cause the
Hpl interface to be multiply wired. The effects are that a call to
setModeSpi will be repeated N times where N is the number of clients.

-- 
Jonathan W. Hui
jwhui at cs.berkeley.edu
http://www.cs.berkeley.edu/~jwhui/


More information about the Tinyos-devel mailing list