Added usb serial

This commit is contained in:
2026-08-23 22:36:24 +02:00
parent bcf16d2fb9
commit 871fde8d3b
4 changed files with 78 additions and 2 deletions
+21
View File
@@ -0,0 +1,21 @@
//
// Created by nano on 8/23/26.
//
#ifndef MCU_CODE_USB_SERIAL_H
#define MCU_CODE_USB_SERIAL_H
#define USB_BUFFER_SIZE 1024
#include <cstdint>
namespace usb_serial {
static void write(const char* byte, int len);
static int read(char* byte,int len);
static void write_byte(char* byte);
static int read_byte(char* byte);
static void init();
};
#endif //MCU_CODE_USB_SERIAL_H