Add an interface for soft disconnection, and hook it up in the F107 driver.

This commit is contained in:
Mike Smith
2012-01-02 21:06:48 -08:00
committed by Piotr Esden-Tempski
parent 5310cd1b57
commit 7da1967056
4 changed files with 20 additions and 0 deletions

View File

@@ -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));