diff options
| author | Bernard Xiong <[email protected]> | 2021-02-23 09:41:27 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-02-23 09:41:27 +0800 |
| commit | d9c3459e1108ab4111ead3b0c8d92cb0d8318bc9 (patch) | |
| tree | 8bd579512f93660a0df73af473ec9a95eaee0a43 /components/drivers/include | |
| parent | 6d3847b6bd3407172f7fdeb16d477260f7caaefa (diff) | |
| parent | b51c6339f0f16e5780482b32d020db4f18642e0f (diff) | |
Merge pull request #4295 from LeeChunHei/test_branch
添加imxrt的pulse encoder和usb host驅動
Diffstat (limited to 'components/drivers/include')
| -rw-r--r-- | components/drivers/include/drivers/usb_host.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/components/drivers/include/drivers/usb_host.h b/components/drivers/include/drivers/usb_host.h index 2a68f4edb5..bd73c7d1d7 100644 --- a/components/drivers/include/drivers/usb_host.h +++ b/components/drivers/include/drivers/usb_host.h @@ -136,7 +136,8 @@ struct uhcd struct rt_device parent; uhcd_ops_t ops; rt_uint8_t num_ports; - uhub_t roothub; + uhub_t roothub; + struct rt_messagequeue *usb_mq; }; typedef struct uhcd* uhcd_t; @@ -163,7 +164,7 @@ struct uhost_msg typedef struct uhost_msg* uhost_msg_t; /* usb host system interface */ -rt_err_t rt_usb_host_init(void); +rt_err_t rt_usb_host_init(const char *name); void rt_usbh_hub_init(struct uhcd *hcd); /* usb host core interface */ @@ -203,7 +204,7 @@ rt_err_t rt_usbh_hub_clear_port_feature(uhub_t uhub, rt_uint16_t port, rt_err_t rt_usbh_hub_set_port_feature(uhub_t uhub, rt_uint16_t port, rt_uint16_t feature); rt_err_t rt_usbh_hub_reset_port(uhub_t uhub, rt_uint16_t port); -rt_err_t rt_usbh_event_signal(struct uhost_msg* msg); +rt_err_t rt_usbh_event_signal(uhcd_t uhcd, struct uhost_msg* msg); void rt_usbh_root_hub_connect_handler(struct uhcd *hcd, rt_uint8_t port, rt_bool_t isHS); |
