add usbh_hcd to hold common structure/typedef for usbh and hcd
This commit is contained in:
		| @@ -56,19 +56,23 @@ | ||||
| #endif | ||||
|  | ||||
| #include "common/common.h" | ||||
| //#include "usbh.h" | ||||
| #include "usbh_hcd.h" | ||||
|  | ||||
| typedef uint32_t pipe_handle_t; | ||||
| //--------------------------------------------------------------------+ | ||||
| // MACRO CONSTANT TYPEDEF | ||||
| //--------------------------------------------------------------------+ | ||||
|  | ||||
|  | ||||
|  | ||||
| //--------------------------------------------------------------------+ | ||||
| // USBH-HCD API | ||||
| //--------------------------------------------------------------------+ | ||||
| tusb_error_t hcd_init(uint8_t hostid) ATTR_WARN_UNUSED_RESULT; | ||||
|  | ||||
| //--------------------------------------------------------------------+ | ||||
| // PIPE API | ||||
| //--------------------------------------------------------------------+ | ||||
| //pipe_handle_t hcd_pipe_addr0_open(usbh_device_addr0_t const * dev_addr0); | ||||
| pipe_handle_t hcd_pipe_addr0_open(uint8_t core_id, tusb_speed_t speed, uint8_t hub_addr, uint8_t hub_port); | ||||
|  | ||||
| pipe_handle_t hcd_pipe_addr0_open(usbh_device_addr0_t const * dev_addr0); | ||||
| pipe_handle_t hcd_pipe_control_open(uint8_t dev_addr, uint8_t max_packet_size); | ||||
| tusb_error_t  hcd_pipe_control_xfer(pipe_handle_t pipe_hdl, tusb_std_request_t const * p_request, uint8_t data[]); | ||||
| pipe_handle_t hcd_pipe_open(uint8_t dev_addr, tusb_descriptor_endpoint_t const * endpoint_desc); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 hathach
					hathach