[Tinyos-2.0wg] msp430 usart configure
Jonathan Hui
jwhui at cs.berkeley.edu
Thu Aug 3 20:10:18 PDT 2006
Thanks for checking the stuff in. The cc2420 and stm25p on the telos
platform use the default spi configuration, so it just works.
One question I have is why not just let the SPI/UART/I2C components
call the respective set/get methods on the configuration registers
directly rather than passing some configuration struct around having
the HPL call the set/get methods that it's providing? It seems to me
that the former is more efficient, while the latter requires
marshalling, unmarshalling, and the overhead of passing the pointer on
the stack. Accessing bit fields on the msp430 isn't terribly
efficient.
--
Jonathan W. Hui
jwhui at cs.berkeley.edu
http://www.cs.berkeley.edu/~jwhui/
On 8/3/06, Philipp Huppertz <huppertz at tkn.tu-berlin.de> wrote:
> Hey,
>
> I've just checked in Vlado's msp430 usart configure changes.
>
> All platforms should wire to a module providing the interface
> Msp430SpiConfigure/Msp430UartConfigure if another configuration than the
> default config in /chips/msp430/usart/msp430usart.h is desired.
>
> An example for the Msp430UartConfigure can be found at
> /platforms/eyesIFX/chips/tda5250/HplTda5250DataC.nc
> /platforms/eyesIFX/chips/tda5250/Tda5250BusResourceConfigureP.nc.
>
> An example for the Msp430SpiConfigure can be found at
> /platforms/eyesIFX/PlatformSerialC.nc
> /platforms/eyesIFX/eyesIFXSerialP.nc.
>
>
> Here is a list of potential files needing an update:
>
> _=tinynode:
> spi:
> /tos/platforms/tinynode/chips/xe1205/HplXE1205SpiC.nc:
> uart:
> /tos/platforms/tinynode/PlatformSerialC.nc
> /tos/platforms/tinynode/TinyNodeSerialP.nc
>
> _=telosa:
> spi:
> /tos/platforms/telosa/chips/cc2420/HplCC2420SpiC.nc:
>
> _=telosb:
> spi:
> /tos/platforms/telosb/chips/stm25p/HplStm25pSpiC.nc
>
>
> regards,
> philipp
>
> ps: i have just done a quick merge with the i2c stuff, so i think it isn't
> working anymore. sorry for that...
> _______________________________________________
> Tinyos-2.0wg mailing list
> Tinyos-2.0wg at Mail.Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-2.0wg
>
More information about the Tinyos-2.0wg
mailing list