Go to the documentation of this file.
19 #ifndef SLIPDEV_INTERNAL_H
20 #define SLIPDEV_INTERNAL_H
38 #define SLIPDEV_END (0xc0U)
39 #define SLIPDEV_ESC (0xdbU)
40 #define SLIPDEV_END_ESC (0xdcU)
41 #define SLIPDEV_ESC_ESC (0xddU)
48 #define SLIPDEV_STDIO_START (0x0aU)
unsigned slipdev_unstuff_readbyte(uint8_t *buf, uint8_t byte, bool *escaped)
Unstuffs a (SLIP-escaped) byte.
unsigned int uart_t
Define default UART type identifier.
Low-level UART peripheral driver interface definition.
mutex_t slipdev_mutex
Mutex to synchronize write operations to the UART between stdio sub-module and normal SLIP.
Mutex for thread synchronization.
isrpipe_t slipdev_stdio_isrpipe
ISR pipe to hand read bytes to stdin.
static void slipdev_write_byte(uart_t uart, uint8_t byte)
Writes one byte to UART.
void slipdev_write_bytes(uart_t uart, const uint8_t *data, size_t len)
Write multiple bytes SLIP-escaped to UART.
void uart_write(uart_t uart, const uint8_t *data, size_t len)
Write data from the given buffer to the specified UART device.
Context structure for isrpipe.