summaryrefslogtreecommitdiffstatshomepage
path: root/teensy/usb.h
diff options
context:
space:
mode:
Diffstat (limited to 'teensy/usb.h')
-rw-r--r--teensy/usb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/teensy/usb.h b/teensy/usb.h
index 949d7a59c0..50fb3ff90d 100644
--- a/teensy/usb.h
+++ b/teensy/usb.h
@@ -1,3 +1,6 @@
+#ifndef MICROPY_INCLUDED_TEENSY_USB_H
+#define MICROPY_INCLUDED_TEENSY_USB_H
+
bool usb_vcp_is_connected(void);
bool usb_vcp_is_enabled(void);
int usb_vcp_rx_num(void);
@@ -5,3 +8,5 @@ int usb_vcp_recv_byte(uint8_t *ptr);
void usb_vcp_send_str(const char* str);
void usb_vcp_send_strn(const char* str, int len);
void usb_vcp_send_strn_cooked(const char *str, int len);
+
+#endif // MICROPY_INCLUDED_TEENSY_USB_H