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