summaryrefslogtreecommitdiff
path: root/tinyusb/host
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-03-10 19:42:50 +0700
committerhathach <[email protected]>2013-03-10 19:42:50 +0700
commitc1ceec067f0e5a10b891b83a13ca765b673d3e3f (patch)
tree1b4626c24aa9112da22bcec384a4473b17c57599 /tinyusb/host
parent3b0b48e01ae9ee11aed4e1ade1e413bea3608bd5 (diff)
add isr empty function for hidh and msch and usbh
Diffstat (limited to 'tinyusb/host')
-rw-r--r--tinyusb/host/usbh.c11
-rw-r--r--tinyusb/host/usbh.h1
2 files changed, 10 insertions, 2 deletions
diff --git a/tinyusb/host/usbh.c b/tinyusb/host/usbh.c
index 3f18c8eff..c84abbc5d 100644
--- a/tinyusb/host/usbh.c
+++ b/tinyusb/host/usbh.c
@@ -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)
{
diff --git a/tinyusb/host/usbh.h b/tinyusb/host/usbh.h
index feb13b7e0..2c367d743 100644
--- a/tinyusb/host/usbh.h
+++ b/tinyusb/host/usbh.h
@@ -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