summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-12-13 13:53:43 +0700
committerhathach <[email protected]>2018-12-13 13:53:43 +0700
commitaf1ffe4675ca9eeeebd47a82f3508eecdc1486c5 (patch)
tree19c02dfa78b2d5470b0845e86fe4e51707de61bd /src
parentbc46dc6edf3ff4bb72fb36e74b8a7d3da447d2d4 (diff)
remove task void* param
Diffstat (limited to 'src')
-rw-r--r--src/device/usbd.c4
-rw-r--r--src/device/usbd_pvt.h2
-rw-r--r--src/host/usbh.c4
-rw-r--r--src/host/usbh.h2
-rw-r--r--src/tusb.c4
5 files changed, 6 insertions, 10 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index a0ff96e8e..aa81cb118 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -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)
{
diff --git a/src/device/usbd_pvt.h b/src/device/usbd_pvt.h
index 798a871b1..d1fccd9e0 100644
--- a/src/device/usbd_pvt.h
+++ b/src/device/usbd_pvt.h
@@ -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
diff --git a/src/host/usbh.c b/src/host/usbh.c
index 7bcf7aaaf..27d32330a 100644
--- a/src/host/usbh.c
+++ b/src/host/usbh.c
@@ -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)
{
diff --git a/src/host/usbh.h b/src/host/usbh.h
index 3656b9a0d..8009c5080 100644
--- a/src/host/usbh.h
+++ b/src/host/usbh.h
@@ -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);
diff --git a/src/tusb.c b/src/tusb.c
index fd390722b..253adc59c 100644
--- a/src/tusb.c
+++ b/src/tusb.c
@@ -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
}