Go to the documentation of this file.
26 #ifndef OPENWSN_UART_H
27 #define OPENWSN_UART_H
42 #ifndef STDIO_UART_DEV
43 #define STDIO_UART_DEV (UART_DEV(0))
52 #ifndef OPENWSN_UART_DEV
53 #ifdef MODULE_STDIO_NULL
54 #define OPENWSN_UART_DEV (STDIO_UART_DEV)
56 #define OPENWSN_UART_DEV ((STDIO_UART_DEV + 1) % UART_NUMOF)
63 #ifndef OPENWSN_UART_BAUDRATE
64 #ifndef STDIO_UART_BAUDRATE
65 #define OPENWSN_UART_BAUDRATE (115200U)
67 #define OPENWSN_UART_BAUDRATE (STDIO_UART_BAUDRATE)
uint8_t uart_readByte(void)
Reads a single byte received through uart.
void uart_writeByte(uint8_t byteToWrite)
Write a single byte to the configured OpenWSN uart.
void(* uart_rx_cbt)(void)
OpenWSN uart rx callback type.
void uart_setCTS(bool state)
Sets software flow control CTS.
void uart_clearTxInterrupts(void)
Unused in RIOT, needs to be defined for OpenWSN.
void(* uart_tx_cbt)(void)
OpenWSN uart tx callback type.
void uart_disableInterrupts(void)
Unused in RIOT, needs to be defined for OpenWSN.
void uart_setCallbacks(uart_tx_cbt txCb, uart_rx_cbt rxCb)
OpenWSN uart tx callback type.
void uart_enableInterrupts(void)
Unused in RIOT, needs to be defined for OpenWSN.
void uart_init_openwsn(void)
Initialize OpenWSN uart.
void uart_clearRxInterrupts(void)
Unused in RIOT, needs to be defined for OpenWSN.