uses interface HplMsp430GeneralIO as UCLK;
uses interface HplMsp430GeneralIO as URXD;
uses interface HplMsp430GeneralIO as UTXD;
+ uses interface HplMsp430InterruptSig as SIGNAL_UART1RX_VECTOR;
+ uses interface HplMsp430InterruptSig as SIGNAL_UART1TX_VECTOR;
}
implementation
MSP430REG_NORACE(U1RCTL);
MSP430REG_NORACE(U1TXBUF);
-
-
- TOSH_SIGNAL(UART1RX_VECTOR) {
+ inline async event void SIGNAL_UART1RX_VECTOR.fired() {
uint8_t temp = U1RXBUF;
signal Interrupts.rxDone(temp);
}
- TOSH_SIGNAL(UART1TX_VECTOR) {
+ inline async event void SIGNAL_UART1TX_VECTOR.fired() {
signal Interrupts.txDone();
}