diff options
Diffstat (limited to 'firmware/src/data_link.h')
-rw-r--r-- | firmware/src/data_link.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/src/data_link.h b/firmware/src/data_link.h new file mode 100644 index 0000000..359cb2b --- /dev/null +++ b/firmware/src/data_link.h @@ -0,0 +1,10 @@ +#include <sys/types.h> +#include <zephyr/device.h> + +#define DL_SLIP_END 0xC0 +#define DL_SLIP_ESC 0xDB +#define DL_SLIP_ESC_END 0xDC +#define DL_SLIP_ESC_ESC 0xDD + +void dl_send_frame(const struct device *const uart_dev, uint8_t *buffer, + size_t len); |