- 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();
+ async command error_t UartByte.send[ uint8_t id ]( uint8_t data ) {
+ if (call UsartResource.isOwner[id]() == FALSE)
+ return FAIL;
+ call Usart.clrTxIntr();
+ call Usart.disableTxIntr ();
+ call Usart.tx( data );
+ while( !call Usart.isTxIntrPending() );
+ call Usart.clrTxIntr();
+ call Usart.enableTxIntr();