replace tusbh_cdc_isr by tusbh_cdc_xfer_isr with extra parameter as

- pipe id
- xferred_bytes

host_class_driver_t add xferred_bytes parameter
void (* const isr) (pipe_handle_t, tusb_event_t); -->   void (* const isr) (pipe_handle_t, tusb_event_t, uint32_t);

update hid_host & its tests
This commit is contained in:
hathach
2013-07-03 11:36:08 +07:00
parent b3f98bc15a
commit 1667ef5041
10 changed files with 26 additions and 13 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ typedef enum tusb_interface_status_{
typedef struct {
void (* const init) (void);
tusb_error_t (* const open_subtask)(uint8_t, tusb_descriptor_interface_t const *, uint16_t*);
void (* const isr) (pipe_handle_t, tusb_event_t);
void (* const isr) (pipe_handle_t, tusb_event_t, uint32_t);
void (* const close) (uint8_t);
} host_class_driver_t;
//--------------------------------------------------------------------+