summaryrefslogtreecommitdiff
path: root/tinyusb/device
diff options
context:
space:
mode:
authorhathach <[email protected]>2014-03-19 16:50:49 +0700
committerhathach <[email protected]>2014-03-19 16:50:49 +0700
commit61657f6751ce96dd2b0c260729061ac0eb2adab4 (patch)
treeca36ec255a8e7a1e38393cca2e2151bf6112011f /tinyusb/device
parente8138df6a3ffab99fa75ced7d03534d65a2aadaf (diff)
change OSAL_TASK_FUNCTION to adapt with cmsis rtx
Diffstat (limited to 'tinyusb/device')
-rw-r--r--tinyusb/device/usbd.c2
-rw-r--r--tinyusb/device/usbd.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/tinyusb/device/usbd.c b/tinyusb/device/usbd.c
index a9ed82e2d..b64b25f4a 100644
--- a/tinyusb/device/usbd.c
+++ b/tinyusb/device/usbd.c
@@ -225,7 +225,7 @@ tusb_error_t usbd_control_request_subtask(uint8_t coreid, tusb_control_request_t
// To enable the TASK_ASSERT style (quick return on false condition) in a real RTOS, a task must act as a wrapper
// and is used mainly to call subtasks. Within a subtask return statement can be called freely, the task with
// forever loop cannot have any return at all.
-OSAL_TASK_FUNCTION(usbd_task) (void* p_task_para)
+OSAL_TASK_FUNCTION(usbd_task, p_task_para)
{
OSAL_TASK_LOOP_BEGIN
diff --git a/tinyusb/device/usbd.h b/tinyusb/device/usbd.h
index 684d2fbed..48574fddc 100644
--- a/tinyusb/device/usbd.h
+++ b/tinyusb/device/usbd.h
@@ -101,7 +101,7 @@ bool tusbd_is_configured(uint8_t coreid) ATTR_WARN_UNUSED_RESULT;
extern osal_semaphore_handle_t usbd_control_xfer_sem_hdl;
tusb_error_t usbd_init(void);
-OSAL_TASK_FUNCTION (usbd_task) (void* p_task_para);
+OSAL_TASK_FUNCTION (usbd_task, p_task_para);
#endif