[Tinyos-devel] parameterization of UartStream

Eric Decker cire831 at gmail.com
Sat May 3 00:23:00 PDT 2008


I've run into a problem with how the uart is wired on the msp430.

On the device we are building we have a serial multiplexer attached outboard
of UART1 on the msp430.
This multiplexer switches between the serial line going to the PC and a GPS
unit.  Access to the UART
is controlled by a Resource Arbiter and works well.

However, examining MSP430Uart1C revels that while Resource and
ResourceConfigure are paramertized
UartStream isn't.  Yet UartStream is what wires 3 events from the interrupt
system when tx and rx
events have occured.

What I've observed is the GPS s/w will arbritrate for the UART and will get
the grant.  The GPS
starts to send data and the interrupt system will hand the received byte to
the GPS code via the
event as it should.  The received byte will also be handed to HdlcTranslateC
which has been
wired in to UartStream via PlatformSerialC to handle packets being received
from the PC.  This
is because of fan-out from the non-parameterized interface.

I beleive the solution is to parameterize UartStream so the events are
delivered to the proper
owner of the interface.  I've coded up a fix for the MSP430 (my platform and
the telosb).  Should
I post the diffs here?

Thoughts?

eric
Eric B. Decker
research associate
Autonomous Systems Lab
Baskin School of Engineering
UCSC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-devel/attachments/20080503/74207d0c/attachment.htm 


More information about the Tinyos-devel mailing list