49 #include "contiki-esb.h"
51 static int (* input_handler)(
unsigned char) =
NULL;
54 interrupt(UART1RX_VECTOR)
57 ENERGEST_ON(ENERGEST_TYPE_IRQ);
60 if(!(URCTL1 & RXERR) && input_handler !=
NULL) {
62 if(input_handler(RXBUF1)) {
69 ENERGEST_OFF(ENERGEST_TYPE_IRQ);
88 ME2 |= (UTXE1 | URXE1);
96 ENERGEST_ON(ENERGEST_TYPE_SERIAL);
98 while((IFG2 & UTXIFG1) == 0) {
103 ENERGEST_OFF(ENERGEST_TYPE_SERIAL);
109 if(speed == RS232_19200) {
114 }
else if(speed == RS232_38400) {
119 }
else if(speed == RS232_57600) {
123 }
else if(speed == RS232_115200) {
149 slip_arch_writeb(
unsigned char c)