diff options
| author | hathach <[email protected]> | 2014-03-19 16:50:49 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-03-19 16:50:49 +0700 |
| commit | 61657f6751ce96dd2b0c260729061ac0eb2adab4 (patch) | |
| tree | ca36ec255a8e7a1e38393cca2e2151bf6112011f /tinyusb/host | |
| parent | e8138df6a3ffab99fa75ced7d03534d65a2aadaf (diff) | |
change OSAL_TASK_FUNCTION to adapt with cmsis rtx
Diffstat (limited to 'tinyusb/host')
| -rw-r--r-- | tinyusb/host/usbh.c | 2 | ||||
| -rw-r--r-- | tinyusb/host/usbh.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tinyusb/host/usbh.c b/tinyusb/host/usbh.c index 7653affba..1ff9d365e 100644 --- a/tinyusb/host/usbh.c +++ b/tinyusb/host/usbh.c @@ -342,7 +342,7 @@ static tusb_error_t enumeration_body_subtask(void); // 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(usbh_enumeration_task) (void* p_task_para)
+OSAL_TASK_FUNCTION(usbh_enumeration_task, p_task_para)
{
(void) p_task_para; // suppress compiler warnings
diff --git a/tinyusb/host/usbh.h b/tinyusb/host/usbh.h index 467ab6e95..efddfbeb9 100644 --- a/tinyusb/host/usbh.h +++ b/tinyusb/host/usbh.h @@ -99,7 +99,7 @@ ATTR_WEAK void tusbh_device_mount_failed_cb(tusb_error_t error, tusb_descript #ifdef _TINY_USB_SOURCE_FILE_ -OSAL_TASK_FUNCTION (usbh_enumeration_task) (void* p_task_para); +OSAL_TASK_FUNCTION (usbh_enumeration_task, p_task_para); tusb_error_t usbh_init(void); tusb_error_t usbh_control_xfer_subtask(uint8_t dev_addr, uint8_t bmRequestType, uint8_t bRequest, |
