change OSAL_TASK_FUNCTION to adapt with cmsis rtx
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user