2009-09-08 20:07:35 +00:00
|
|
|
#ifndef UART_H
|
|
|
|
#define UART_H
|
|
|
|
|
|
|
|
#include "contiki-conf.h"
|
2010-01-25 23:12:09 +00:00
|
|
|
#include "banked.h"
|
2009-09-08 20:07:35 +00:00
|
|
|
|
|
|
|
#include "cc2430_sfr.h"
|
|
|
|
|
2010-01-25 23:12:09 +00:00
|
|
|
void uart0_init(uint32_t speed) __banked;
|
2009-09-08 20:07:35 +00:00
|
|
|
void uart0_writeb(uint8_t byte);
|
|
|
|
|
|
|
|
void uart0_set_input(int (*input)(unsigned char c));
|
|
|
|
|
|
|
|
void uart0_rxISR( void ) __interrupt (URX0_VECTOR);
|
|
|
|
void uart0_txISR( void ) __interrupt (UTX0_VECTOR);
|
|
|
|
|
2010-01-25 23:12:09 +00:00
|
|
|
void uart1_init(uint32_t speed) __banked;
|
2009-09-08 20:07:35 +00:00
|
|
|
void uart1_writeb(uint8_t byte);
|
|
|
|
|
|
|
|
void uart1_set_input(int (*input)(unsigned char c));
|
|
|
|
|
|
|
|
void uart1_rxISR( void ) __interrupt (URX1_VECTOR);
|
|
|
|
void uart1_txISR( void ) __interrupt (UTX1_VECTOR);
|
|
|
|
|
|
|
|
#endif /*UART_H*/
|