summaryrefslogtreecommitdiffstatshomepage
path: root/stm/usb.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-26 17:41:01 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-26 17:41:01 +0000
commit75abee206d1a575aa98a486d043c94d64df432c1 (patch)
treef5842abbd035f84abd7cf758c8b4bb6efdfca17c /stm/usb.h
parent8fcf7b858d28acb098ca4ee85860ca4ed88f0207 (diff)
downloadmicropython-75abee206d1a575aa98a486d043c94d64df432c1.tar.gz
micropython-75abee206d1a575aa98a486d043c94d64df432c1.zip
stm: USB host mode working! Restructure stm library directories.
Diffstat (limited to 'stm/usb.h')
-rw-r--r--stm/usb.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/stm/usb.h b/stm/usb.h
index 68954af636..c3b39ca846 100644
--- a/stm/usb.h
+++ b/stm/usb.h
@@ -1,4 +1,4 @@
-void usb_init(void);
+void pyb_usb_dev_init(void);
bool usb_vcp_is_enabled(void);
int usb_vcp_rx_any(void);
char usb_vcp_rx_get(void);
@@ -7,7 +7,6 @@ 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, ?
-void pyb_usbh_init(void);
-mp_obj_t pyb_usbh_process(void);
-mp_obj_t pyb_usbh_connect(void);
-mp_obj_t pyb_usbh_info(void);
+void pyb_usb_host_init(void);
+void pyb_usb_host_process(void);
+uint pyb_usb_host_get_keyboard(void);