summaryrefslogtreecommitdiffstatshomepage
path: root/stm/usb.h
diff options
context:
space:
mode:
Diffstat (limited to 'stm/usb.h')
-rw-r--r--stm/usb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/stm/usb.h b/stm/usb.h
index c3b39ca846..1f263bd07b 100644
--- a/stm/usb.h
+++ b/stm/usb.h
@@ -1,5 +1,10 @@
+#define VCP_CHAR_NONE (0)
+#define VCP_CHAR_CTRL_C (3)
+#define VCP_CHAR_CTRL_D (4)
+
void pyb_usb_dev_init(void);
bool usb_vcp_is_enabled(void);
+void usb_vcp_set_interrupt_char(int c);
int usb_vcp_rx_any(void);
char usb_vcp_rx_get(void);
void usb_vcp_send_str(const char* str);