fix some warnings
This commit is contained in:
		| @@ -123,7 +123,7 @@ static ehci_link_t*  list_find_previous_item(ehci_link_t* p_head, ehci_link_t* p | ||||
| static tusb_error_t list_remove_qhd(ehci_link_t* p_head, ehci_link_t* p_remove); | ||||
|  | ||||
| static tusb_error_t hcd_controller_init(uint8_t hostid) ATTR_WARN_UNUSED_RESULT; | ||||
| static tusb_error_t hcd_controller_stop(uint8_t hostid) ATTR_WARN_UNUSED_RESULT; | ||||
| static tusb_error_t hcd_controller_stop(uint8_t hostid) ATTR_WARN_UNUSED_RESULT ATTR_UNUSED; | ||||
|  | ||||
| //--------------------------------------------------------------------+ | ||||
| // USBH-HCD API | ||||
| @@ -278,20 +278,6 @@ static tusb_error_t hcd_controller_stop(uint8_t hostid) | ||||
|   return timeout_expired(&timeout) ? TUSB_ERROR_OSAL_TIMEOUT : TUSB_ERROR_NONE; | ||||
| } | ||||
|  | ||||
| //tusb_error_t hcd_controller_reset(uint8_t hostid) | ||||
| //{ | ||||
| //  ehci_registers_t* const regs = get_operational_register(hostid); | ||||
| //  timeout_timer_t timeout; | ||||
| // | ||||
| //// NXP chip powered with non-host mode --> sts bit is not correctly reflected | ||||
| //  regs->usb_cmd_bit.reset = 1; | ||||
| // | ||||
| //  timeout_set(&timeout, 2); // should not take longer the time to stop controller | ||||
| //  while( regs->usb_cmd_bit.reset && !timeout_expired(&timeout)) {} | ||||
| // | ||||
| //  return timeout_expired(&timeout) ? TUSB_ERROR_OSAL_TIMEOUT : TUSB_ERROR_NONE; | ||||
| //} | ||||
|  | ||||
| //--------------------------------------------------------------------+ | ||||
| // CONTROL PIPE API | ||||
| //--------------------------------------------------------------------+ | ||||
|   | ||||
| @@ -200,7 +200,6 @@ tusb_error_t hub_open_subtask(uint8_t dev_addr, tusb_descriptor_interface_t cons | ||||
| void         hub_isr(pipe_handle_t pipe_hdl, tusb_event_t event, uint32_t xferred_bytes); | ||||
| void         hub_close(uint8_t dev_addr); | ||||
|  | ||||
| tusb_error_t hub_status_pipe_queue(uint8_t dev_addr); | ||||
| #endif | ||||
|  | ||||
| #ifdef __cplusplus | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 hathach
					hathach