host msc built but got hardfault with inquiry command
This commit is contained in:
		| @@ -189,7 +189,10 @@ void tuh_msc_isr(uint8_t dev_addr, xfer_result_t event, uint32_t xferred_bytes); | ||||
|  | ||||
| typedef struct { | ||||
|   pipe_handle_t bulk_in, bulk_out; | ||||
|   uint8_t  interface_number; | ||||
|  | ||||
|   uint8_t itf_numr; | ||||
|   uint8_t  ep_in; | ||||
|   uint8_t  ep_out; | ||||
|  | ||||
|   uint8_t  max_lun; | ||||
|   uint16_t block_size; | ||||
| @@ -204,8 +207,8 @@ typedef struct { | ||||
| }msch_interface_t; | ||||
|  | ||||
| void msch_init(void); | ||||
| bool msch_open_subtask(uint8_t dev_addr, tusb_desc_interface_t const *p_interface_desc, uint16_t *p_length) ATTR_WARN_UNUSED_RESULT; | ||||
| void msch_isr(pipe_handle_t pipe_hdl, xfer_result_t event, uint32_t xferred_bytes); | ||||
| bool msch_open(uint8_t rhport, uint8_t dev_addr, tusb_desc_interface_t const *itf_desc, uint16_t *p_length); | ||||
| void msch_isr(uint8_t dev_addr, uint8_t ep_addr, xfer_result_t event, uint32_t xferred_bytes); | ||||
| void msch_close(uint8_t dev_addr); | ||||
|  | ||||
| #endif | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 hathach
					hathach