cleanup, remove the use of _TINY_USB_SOURCE_FILE_
This commit is contained in:
		| @@ -28,8 +28,6 @@ | ||||
|  | ||||
| #if (TUSB_OPT_HOST_ENABLED && CFG_TUH_HUB) | ||||
|  | ||||
| #define _TINY_USB_SOURCE_FILE_ | ||||
|  | ||||
| //--------------------------------------------------------------------+ | ||||
| // INCLUDE | ||||
| //--------------------------------------------------------------------+ | ||||
|   | ||||
| @@ -178,17 +178,13 @@ tusb_speed_t hub_port_get_speed(void); | ||||
| bool hub_status_pipe_queue(uint8_t dev_addr); | ||||
|  | ||||
| //--------------------------------------------------------------------+ | ||||
| // USBH-CLASS DRIVER API | ||||
| // Internal Class Driver API | ||||
| //--------------------------------------------------------------------+ | ||||
| #ifdef _TINY_USB_SOURCE_FILE_ | ||||
|  | ||||
| void hub_init(void); | ||||
| bool hub_open(uint8_t rhport, uint8_t dev_addr, tusb_desc_interface_t const *itf_desc, uint16_t *p_length); | ||||
| void hub_isr(uint8_t dev_addr, uint8_t ep_addr, xfer_result_t event, uint32_t xferred_bytes); | ||||
| void hub_close(uint8_t dev_addr); | ||||
|  | ||||
| #endif | ||||
|  | ||||
| #ifdef __cplusplus | ||||
|  } | ||||
| #endif | ||||
|   | ||||
| @@ -28,8 +28,6 @@ | ||||
|  | ||||
| #if TUSB_OPT_HOST_ENABLED | ||||
|  | ||||
| #define _TINY_USB_SOURCE_FILE_ | ||||
|  | ||||
| #ifndef CFG_TUH_TASK_QUEUE_SZ | ||||
| #define CFG_TUH_TASK_QUEUE_SZ   16 | ||||
| #endif | ||||
|   | ||||
| @@ -88,10 +88,7 @@ ATTR_WEAK void tuh_umount_cb(uint8_t dev_addr); | ||||
| //--------------------------------------------------------------------+ | ||||
| // CLASS-USBH & INTERNAL API | ||||
| //--------------------------------------------------------------------+ | ||||
| #ifdef _TINY_USB_SOURCE_FILE_ | ||||
|  | ||||
| bool usbh_init(void); | ||||
|  | ||||
| bool usbh_control_xfer (uint8_t dev_addr, tusb_control_request_t* request, uint8_t* data); | ||||
|  | ||||
| #endif | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 hathach
					hathach