osal macro clean up

This commit is contained in:
hathach
2018-03-01 12:14:44 +07:00
parent 40935fc01c
commit 7add7337ba
15 changed files with 32 additions and 41 deletions

View File

@@ -123,7 +123,7 @@ void cdc_serial_host_app_task( void* param )
{
(void) param;
OSAL_TASK_LOOP_BEGIN
OSAL_TASK_BEGIN
//------------- send characters got from uart terminal to the first CDC device -------------//
for(uint8_t dev_addr=1; dev_addr <= TUSB_CFG_HOST_DEVICE_MAX; dev_addr++)
@@ -163,7 +163,7 @@ void cdc_serial_host_app_task( void* param )
}
}
OSAL_TASK_LOOP_END
OSAL_TASK_END
}
#endif

View File

@@ -113,7 +113,7 @@ void keyboard_host_app_task(void* param)
{
(void) param;
OSAL_TASK_LOOP_BEGIN
OSAL_TASK_BEGIN
hid_keyboard_report_t kbd_report;
tusb_error_t error;
@@ -123,7 +123,7 @@ void keyboard_host_app_task(void* param)
process_kbd_report(&kbd_report);
OSAL_TASK_LOOP_END
OSAL_TASK_END
}
//--------------------------------------------------------------------+

View File

@@ -114,7 +114,7 @@ void mouse_host_app_task(void* param)
{
(void) param;
OSAL_TASK_LOOP_BEGIN
OSAL_TASK_BEGIN
tusb_error_t error;
hid_mouse_report_t mouse_report;
@@ -124,7 +124,7 @@ void mouse_host_app_task(void* param)
process_mouse_report(&mouse_report);
OSAL_TASK_LOOP_END
OSAL_TASK_END
}
//--------------------------------------------------------------------+

View File

@@ -150,7 +150,7 @@ void msc_host_app_task(void* param)
{
(void) param;;
OSAL_TASK_LOOP_BEGIN
OSAL_TASK_BEGIN
bool is_any_disk_mounted;
@@ -176,7 +176,7 @@ void msc_host_app_task(void* param)
}
}
OSAL_TASK_LOOP_END
OSAL_TASK_END
}
#endif

View File

@@ -69,8 +69,8 @@ void rndis_host_app_init(void)
void rndis_host_app_task(void* param)
{
OSAL_TASK_LOOP_BEGIN
OSAL_TASK_LOOP_END
OSAL_TASK_BEGIN
OSAL_TASK_END
}
#endif