OpenWSN Firmware
uart.h
Go to the documentation of this file.
1 #ifndef __UART_H
2 #define __UART_H
3 
15 #include "stdint.h"
16 #include "board.h"
17 
18 //=========================== define ==========================================
19 
20 //=========================== typedef =========================================
21 
22 typedef enum {
25 } uart_event_t;
26 
27 typedef void (*uart_tx_cbt)(void);
28 typedef void (*uart_rx_cbt)(void);
29 
30 //=========================== variables =======================================
31 
32 //=========================== prototypes ======================================
33 
34 void uart_init(void);
36 void uart_enableInterrupts(void);
37 void uart_disableInterrupts(void);
38 void uart_clearRxInterrupts(void);
39 void uart_clearTxInterrupts(void);
40 void uart_writeByte(uint8_t byteToWrite);
41 uint8_t uart_readByte(void);
42 
43 // interrupt handlers
46 
52 #endif
void(* uart_rx_cbt)(void)
Definition: uart.h:28
void uart_writeByte(uint8_t byteToWrite)
Definition: uart.h:24
uint8_t uart_readByte(void)
void uart_setCallbacks(uart_tx_cbt txCb, uart_rx_cbt rxCb)
kick_scheduler_t uart_tx_isr(void)
kick_scheduler_t
Definition: board.h:20
void uart_init(void)
void(* uart_tx_cbt)(void)
Definition: uart.h:27
kick_scheduler_t uart_rx_isr(void)
void uart_disableInterrupts(void)
void uart_enableInterrupts(void)
uart_event_t
Definition: uart.h:22
Definition: uart.h:23
void uart_clearRxInterrupts(void)
void uart_clearTxInterrupts(void)