From 4426af03f8f93ecb1fd7926d18771de5d0dfe9df Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Tue, 23 Feb 2021 09:44:27 +0800 Subject: Revert "添加imxrt的pulse encoder和usb host驅動" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/drivers/include/drivers/usb_host.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'components/drivers/include') diff --git a/components/drivers/include/drivers/usb_host.h b/components/drivers/include/drivers/usb_host.h index bd73c7d1d7..2a68f4edb5 100644 --- a/components/drivers/include/drivers/usb_host.h +++ b/components/drivers/include/drivers/usb_host.h @@ -136,8 +136,7 @@ struct uhcd struct rt_device parent; uhcd_ops_t ops; rt_uint8_t num_ports; - uhub_t roothub; - struct rt_messagequeue *usb_mq; + uhub_t roothub; }; typedef struct uhcd* uhcd_t; @@ -164,7 +163,7 @@ struct uhost_msg typedef struct uhost_msg* uhost_msg_t; /* usb host system interface */ -rt_err_t rt_usb_host_init(const char *name); +rt_err_t rt_usb_host_init(void); void rt_usbh_hub_init(struct uhcd *hcd); /* usb host core interface */ @@ -204,7 +203,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(uhcd_t uhcd, struct uhost_msg* msg); +rt_err_t rt_usbh_event_signal(struct uhost_msg* msg); void rt_usbh_root_hub_connect_handler(struct uhcd *hcd, rt_uint8_t port, rt_bool_t isHS); -- cgit v1.3.1