#include <stddef.h>
#include <stdint.h>
#include "isrpipe.h"
#include "periph/uart.h"
#include "mutex.h"
Go to the source code of this file.
|
isrpipe_t | slipdev_stdio_isrpipe |
| ISR pipe to hand read bytes to stdin.
|
|
mutex_t | slipdev_mutex |
| Mutex to synchronize write operations to the UART between stdio sub-module and normal SLIP.
|
|
◆ SLIPDEV_END
#define SLIPDEV_END (0xc0U) |
◆ SLIPDEV_END_ESC
#define SLIPDEV_END_ESC (0xdcU) |
◆ SLIPDEV_ESC
#define SLIPDEV_ESC (0xdbU) |
◆ SLIPDEV_ESC_ESC
#define SLIPDEV_ESC_ESC (0xddU) |
◆ SLIPDEV_STDIO_START
#define SLIPDEV_STDIO_START (0x0aU) |
Marker byte for beginning of stdio.
- See also
- taken from diagnostic transfer from SLIPMUX
Definition at line 48 of file slipdev_internal.h.
◆ slipdev_write_byte()
static void slipdev_write_byte |
( |
uart_t |
uart, |
|
|
uint8_t |
byte |
|
) |
| |
|
inlinestatic |
Writes one byte to UART.
- Parameters
-
[in] | uart | The UART device to write to. |
[in] | byte | The byte to write to uart . |
Definition at line 68 of file slipdev_internal.h.
◆ slipdev_write_bytes()
void slipdev_write_bytes |
( |
uart_t |
uart, |
|
|
const uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
Write multiple bytes SLIP-escaped to UART.
- Parameters
-
[in] | uart | The UART device to write to. |
[in] | data | The bytes to write SLIP-escaped to uart . |
[in] | len | Number of bytes in data . |