add hard fault handler to bsp.c

rename class_install_subtask to class_open_subtask
add class_close for unmount
adding code for usbh_device_unplugged_isr & invoke it in hcd_isr
This commit is contained in:
hathach
2013-03-13 10:57:30 +07:00
parent 63765b37c7
commit 97c9001d40
11 changed files with 161 additions and 12 deletions

View File

@@ -151,8 +151,9 @@ typedef uint8_t tusbh_device_status_t;
typedef struct {
void (* const init) (void);
tusb_error_t (* const install_subtask)(uint8_t, uint8_t const *, uint16_t*);
tusb_error_t (* const open_subtask)(uint8_t, uint8_t const *, uint16_t*);
void (* const isr) (pipe_handle_t);
void (* const close) (uint8_t)
} class_driver_t;
//--------------------------------------------------------------------+
// INTERNAL OBJECT & FUNCTION DECLARATION