diff --git a/usb_serial.h b/usb_serial.h new file mode 100644 index 0000000000000000000000000000000000000000..f5d616cd1e2eea77ea3cee0fa88951e45fdda162 --- /dev/null +++ b/usb_serial.h @@ -0,0 +1,14 @@ +#ifndef USB_SERIAL_H +#define USB_SERIAL_H + +#include "tusb.h" +#include <stdbool.h> +#include <stdint.h> + +void usb_init(void); // Initialize USB +int usb_write(const uint8_t *buf, int len); // Send data +int usb_read(uint8_t *buf, int len); // Receive data +bool usb_connected(void); // Check USB status +void usb_cleanup(void); // Clean up, not used yet + +#endif // USB_SERIAL_H