yes but you need to do more. the best way is to find something else that uses the spi and understand what that does.
you have to configure the pins properly, set them to module mode, and make sure they are connected to something reasonable. For example look at what the cc2420 radio does. it uses the spi. On Thu, Oct 31, 2013 at 10:11 AM, Maryam Jalalitabar <[email protected]>wrote: > Hi everyone, > > > On telosB, I want activate port 3 pin 2,so P3.2 will be connected to USART > 0. > > P3SEL |=0x02; > > Do I have to add this command in my makefile? > > Then, I want to configure USART 0 in its SPI mode and write some data to > P3.2. > > I found a component name: > > HplMsp430Usart0C > > which has an interface: > > Interface HplMsp430Usart > > This interface has a command: > > Command void enableSpi(); > > In its description it says: Enables the USART in Spi mode. > > Is this the correct way to config USART? > > Thanks, > Maryam > > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > -- Eric B. Decker Senior (over 50 :-) Researcher
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
