uses interface HplMsp430GeneralIO as UCLK;
uses interface HplMsp430GeneralIO as URXD;
uses interface HplMsp430GeneralIO as UTXD;
+ uses interface HplMsp430InterruptSig as SIGNAL_UART0RX_VECTOR;
+ uses interface HplMsp430InterruptSig as SIGNAL_UART0TX_VECTOR;
}
implementation
MSP430REG_NORACE(U0RCTL);
MSP430REG_NORACE(U0TXBUF);
- TOSH_SIGNAL(UART0RX_VECTOR) {
+ inline async event void SIGNAL_UART0RX_VECTOR.fired() {
uint8_t temp = U0RXBUF;
signal Interrupts.rxDone(temp);
}
- TOSH_SIGNAL(UART0TX_VECTOR) {
+ inline async event void SIGNAL_UART0TX_VECTOR.fired() {
if ( call HplI2C.isI2C() )
signal I2CInterrupts.fired();
else