Added usb serial
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user