diff options
author | Dave Hylands <dhylands@gmail.com> | 2014-01-06 00:20:11 -0800 |
---|---|---|
committer | Dave Hylands <dhylands@gmail.com> | 2014-01-06 00:20:11 -0800 |
commit | 297446e7af472f8869ecca67f37ed159d02b1024 (patch) | |
tree | 80d279810f02335dee457fab68c42f5e4e365c81 /teensy/usb.h | |
parent | e03c0533fe467439bae1addd6d2a2ee57a9370e4 (diff) | |
download | micropython-297446e7af472f8869ecca67f37ed159d02b1024.tar.gz micropython-297446e7af472f8869ecca67f37ed159d02b1024.zip |
Initial support for Teensy 3.1
Diffstat (limited to 'teensy/usb.h')
-rw-r--r-- | teensy/usb.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/teensy/usb.h b/teensy/usb.h new file mode 100644 index 0000000000..8f32309ecb --- /dev/null +++ b/teensy/usb.h @@ -0,0 +1,9 @@ +void usb_init(void); +int usb_vcp_is_enabled(void); +int usb_vcp_is_connected(void); +int usb_vcp_rx_any(void); +char usb_vcp_rx_get(void); +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); +void usb_hid_send_report(uint8_t *buf); // 4 bytes for mouse: ?, x, y, ? |