add isr empty function for hidh and msch and usbh

This commit is contained in:
hathach
2013-03-10 19:42:50 +07:00
parent 3b0b48e01a
commit c1ceec067f
3 changed files with 11 additions and 2 deletions

View File

@@ -57,12 +57,14 @@ class_driver_t const usbh_class_drivers[TUSB_CLASS_MAX_CONSEC_NUMBER] =
{
[TUSB_CLASS_HID] = {
.init = hidh_init,
.install_subtask = hidh_install_subtask
.install_subtask = hidh_install_subtask,
.isr = hidh_isr
},
[TUSB_CLASS_MSC] = {
.init = msch_init,
.install_subtask = msch_install_subtask
.install_subtask = msch_install_subtask,
.isr = msch_isr
}
};
@@ -116,6 +118,11 @@ tusb_error_t usbh_init(void)
return TUSB_ERROR_NONE;
}
void usbh_isr(pipe_handle_t pipe_hdl, uint8_t class_code)
{
}
// function called within a task, requesting os blocking services, subtask input parameter must be static/global variables
tusb_error_t usbh_control_xfer_subtask(uint8_t dev_addr, tusb_std_request_t const* p_request, uint8_t* data)
{

View File

@@ -152,6 +152,7 @@ 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*);
void (* const isr) (pipe_handle_t);
} class_driver_t;
//--------------------------------------------------------------------+
// INTERNAL OBJECT & FUNCTION DECLARATION