Tobias Ang <tobiasang <at> yahoo.com> writes: > > > > > Hi, > > I was wondering how I can enable the use of the FastSpiInterface and if replacing all the command calls in CC2420SpiP would bring the same functionality. Based on my understanding, it would help to speed up the SPI read and write speed. Also in Msp430Spi0C, it is given > > #ifndef ENABLE_SPI0_DMA > provides interface FastSpiByte; > #endif > > ..... > #ifdef ENABLE_SPI0_DMA#warning "Enabling SPI DMA on USART0" > components Msp430SpiDma0P as SpiP; > #else > compo > nents Msp430SpiNoDma0P as SpiP; > #endif > ....... > > #ifndef ENABLE_SPI0_DMA > FastSpiByte = > SpiP.FastSpiByte; > #endif > > > It seems that in either case, the FastSpiByte is defined. What is the difference and how does it work with the connection to other components? > > Thanks for your help and advice. > > Best Regards, > > Tobias > Tobias AngRuetscher Str. 165 Zi 141552072 AachenGermany+49-1797077338 > > > > > >
Just by enabling DMA with spi transfer, we also enable FastSpiByte by default. DMA can be enabled by using flags : PFLAGS += -DENABLE_SPI0_DMA in the makefile. I think it works, because i got an improvement of about 2 ticks( 62.5 microseconds) by enabling "DMA with FastSpiByte" as compared to the case when i enabled "DMA alone". I would like to know if anyone has ever got an improvement more than what i got. If yes, then where could i be going wrong? _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
