aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3/usb
diff options
context:
space:
mode:
authorMike Smith2012-01-02 21:06:48 -0800
committerPiotr Esden-Tempski2012-02-12 15:00:08 -0800
commit7da1967056c1cdba2b37c57015451224605a8a65 (patch)
tree8b5846ab49223b28c2e517ba2e28f0520aaadcec /include/libopencm3/usb
parent5310cd1b57066fe4b359db1d304fd1bb688feee3 (diff)
Add an interface for soft disconnection, and hook it up in the F107 driver.
Diffstat (limited to 'include/libopencm3/usb')
-rw-r--r--include/libopencm3/usb/usbd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libopencm3/usb/usbd.h b/include/libopencm3/usb/usbd.h
index 391c80b..c39ba01 100644
--- a/include/libopencm3/usb/usbd.h
+++ b/include/libopencm3/usb/usbd.h
@@ -56,6 +56,7 @@ extern void usbd_register_set_config_callback(void (*callback)(u16 wValue));
/* Functions to be provided by the hardware abstraction layer */
extern void usbd_poll(void);
+extern void usbd_disconnect(bool disconnected);
extern void usbd_ep_setup(u8 addr, u8 type, u16 max_size,
void (*callback)(u8 ep));