mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-26 17:37:05 +00:00
remove task void* param
This commit is contained in:
parent
bc46dc6edf
commit
af1ffe4675
@ -209,10 +209,8 @@ static void usbd_reset(uint8_t rhport)
|
||||
/* USB Device Driver task
|
||||
* This top level thread manages all device controller event and delegates events to class-specific drivers.
|
||||
*/
|
||||
void usbd_task( void* param)
|
||||
void usbd_task (void)
|
||||
{
|
||||
(void) param;
|
||||
|
||||
// Loop until there is no more events in the queue
|
||||
while (1)
|
||||
{
|
||||
|
@ -52,7 +52,7 @@ extern tud_desc_set_t const* usbd_desc_set;
|
||||
// INTERNAL API for stack management
|
||||
//--------------------------------------------------------------------+
|
||||
bool usbd_init (void);
|
||||
void usbd_task (void* param);
|
||||
void usbd_task (void);
|
||||
|
||||
|
||||
// Carry out Data and Status stage of control transfer
|
||||
|
@ -602,10 +602,8 @@ bool enum_task(hcd_event_t* event)
|
||||
/* USB Host Driver task
|
||||
* This top level thread manages all host controller event and delegates events to class-specific drivers.
|
||||
*/
|
||||
void usbh_task(void* param)
|
||||
void usbh_task(void)
|
||||
{
|
||||
(void) param;
|
||||
|
||||
// Loop until there is no more events in the queue
|
||||
while (1)
|
||||
{
|
||||
|
@ -103,7 +103,7 @@ ATTR_WEAK void tuh_umount_cb(uint8_t dev_addr);
|
||||
#ifdef _TINY_USB_SOURCE_FILE_
|
||||
|
||||
bool usbh_init(void);
|
||||
void usbh_task(void* param);
|
||||
void usbh_task(void);
|
||||
|
||||
bool usbh_control_xfer (uint8_t dev_addr, tusb_control_request_t* request, uint8_t* data);
|
||||
|
||||
|
@ -71,11 +71,11 @@ bool tusb_init(void)
|
||||
void tusb_task(void)
|
||||
{
|
||||
#if TUSB_OPT_HOST_ENABLED
|
||||
usbh_task(NULL);
|
||||
usbh_task();
|
||||
#endif
|
||||
|
||||
#if TUSB_OPT_DEVICE_ENABLED
|
||||
usbd_task(NULL);
|
||||
usbd_task();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user