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

@@ -84,6 +84,7 @@ struct _usbd_driver {
u16 (*ep_write_packet)(u8 addr, const void *buf, u16 len);
u16 (*ep_read_packet)(u8 addr, void *buf, u16 len);
void (*poll)(void);
void (*disconnect)(bool disconnected);
};
#define _usbd_hw_init() _usbd_device.driver->init()