Contiki 2.5
uart.h
1 #ifndef UART_H
2 #define UART_H
3 
4 #include "contiki-conf.h"
5 #include "banked.h"
6 
7 #include "cc2430_sfr.h"
8 
9 void uart0_init(uint32_t speed) __banked;
10 void uart0_writeb(uint8_t byte);
11 
12 void uart0_set_input(int (*input)(unsigned char c));
13 
14 void uart0_rxISR( void ) __interrupt (URX0_VECTOR);
15 void uart0_txISR( void ) __interrupt (UTX0_VECTOR);
16 
17 void uart1_init(uint32_t speed) __banked;
18 void uart1_writeb(uint8_t byte);
19 
20 void uart1_set_input(int (*input)(unsigned char c));
21 
22 void uart1_rxISR( void ) __interrupt (URX1_VECTOR);
23 void uart1_txISR( void ) __interrupt (UTX1_VECTOR);
24 
25 #endif /*UART_H*/