]> oss.titaniummirror.com Git - tinyos-2.x.git/commit
msp430 usci: fix DMA TX byte overwrite
authorR. Steve McKown <rsmckown@gmail.com>
Mon, 29 Dec 2014 23:02:27 +0000 (16:02 -0700)
committerR. Steve McKown <rsmckown@gmail.com>
Mon, 29 Dec 2014 23:02:27 +0000 (16:02 -0700)
commitb4cefea4fe265ce3bead428c13f1435227016cee
tree4426db65e63492f54b19e19491f624f4ae7f81b8
parent701235899c1d9d11c0e9dde9ab89ff2541187c7c
msp430 usci: fix DMA TX byte overwrite

The DMA transmit operation for USCI was a little naive, in that it was
not accounting for the possibility that UCxxTXBUF already has a byte to
be transmitted.  Wait for this byte to be transmitted before starting
the DMA operation.

Also note in the code that the DMA transfer operations, trigered by
UCxxTXIFG, are edge sensitive.
tos/chips/msp430/usci/Msp430UartDmaP.nc