[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/msp430/usart
Msp430UartP.nc, 1.4, 1.5
Vlado Handziski
vlahan at users.sourceforge.net
Mon Jul 9 17:49:43 PDT 2007
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/msp430/usart
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv16667/chips/msp430/usart
Modified Files:
Msp430UartP.nc
Log Message:
- Fix UartByte to properly disable interrupts before busywaiting on the TX interrupt flag, and clear the flag and enable interrupts back afterwards, problem reported by David M.
Index: Msp430UartP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/msp430/usart/Msp430UartP.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Msp430UartP.nc 12 Dec 2006 18:23:11 -0000 1.4
--- Msp430UartP.nc 10 Jul 2007 00:49:41 -0000 1.5
***************
*** 158,165 ****
}
! async command error_t UartByte.send( uint8_t data ) {
! call Usart.tx( data );
! while( !call Usart.isTxIntrPending() );
! call Usart.clrTxIntr();
return SUCCESS;
}
--- 158,168 ----
}
! async command error_t UartByte.send( uint8_t data ) {
! call Usart.clrTxIntr();
! call Usart.disableTxIntr ();
! call Usart.tx( data );
! while( !call Usart.isTxIntrPending() );
! call Usart.clrTxIntr();
! call Usart.enableTxIntr();
return SUCCESS;
}
More information about the Tinyos-2-commits
mailing list