summaryrefslogtreecommitdiffstatshomepage
path: root/teensy/usb.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-02-13 15:04:53 +0000
committerDamien George <damien.p.george@gmail.com>2015-02-13 15:04:53 +0000
commit0b32e50365b6e36474e183a7240ccfc8fa56830a (patch)
tree101cf35f6844c50672af4f15b5866e226bcb47d9 /teensy/usb.h
parentc385a639e6316cba4ff0e7a859325807857d8f00 (diff)
downloadmicropython-0b32e50365b6e36474e183a7240ccfc8fa56830a.tar.gz
micropython-0b32e50365b6e36474e183a7240ccfc8fa56830a.zip
stmhal: Make pybstdio usable by other ports, and use it.
Now all ports can use pybstdio.c to provide sys.stdin/stdout/stderr, so long as they implement mp_hal_stdin_* and mp_hal_stdout_* functions.
Diffstat (limited to 'teensy/usb.h')
-rw-r--r--teensy/usb.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/teensy/usb.h b/teensy/usb.h
new file mode 100644
index 0000000000..949d7a59c0
--- /dev/null
+++ b/teensy/usb.h
@@ -0,0 +1,7 @@
+bool usb_vcp_is_connected(void);
+bool usb_vcp_is_enabled(void);
+int usb_vcp_rx_num(void);
+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);