diff options
| author | hathach <[email protected]> | 2018-03-01 12:14:44 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-01 12:14:44 +0700 |
| commit | 7add7337babf0af8f4f2bbd1127e57dc0d580c1d (patch) | |
| tree | 21ce57fd0fa035161b8970e64028778824d19325 /demos/host/src | |
| parent | 40935fc01ca33b6123c1626f930faf9b48e0b2b0 (diff) | |
osal macro clean up
Diffstat (limited to 'demos/host/src')
| -rw-r--r-- | demos/host/src/cdc_serial_host_app.c | 4 | ||||
| -rw-r--r-- | demos/host/src/keyboard_host_app.c | 4 | ||||
| -rw-r--r-- | demos/host/src/mouse_host_app.c | 4 | ||||
| -rw-r--r-- | demos/host/src/msc_host_app.c | 4 | ||||
| -rw-r--r-- | demos/host/src/rndis_host_app.c | 4 |
5 files changed, 10 insertions, 10 deletions
diff --git a/demos/host/src/cdc_serial_host_app.c b/demos/host/src/cdc_serial_host_app.c index 4c31eb442..f91689c5f 100644 --- a/demos/host/src/cdc_serial_host_app.c +++ b/demos/host/src/cdc_serial_host_app.c @@ -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
diff --git a/demos/host/src/keyboard_host_app.c b/demos/host/src/keyboard_host_app.c index def365096..bfc4bd585 100644 --- a/demos/host/src/keyboard_host_app.c +++ b/demos/host/src/keyboard_host_app.c @@ -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
}
//--------------------------------------------------------------------+
diff --git a/demos/host/src/mouse_host_app.c b/demos/host/src/mouse_host_app.c index 1d5c1cfba..7754bb08b 100644 --- a/demos/host/src/mouse_host_app.c +++ b/demos/host/src/mouse_host_app.c @@ -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
}
//--------------------------------------------------------------------+
diff --git a/demos/host/src/msc_host_app.c b/demos/host/src/msc_host_app.c index 2481fb993..f78d942f5 100644 --- a/demos/host/src/msc_host_app.c +++ b/demos/host/src/msc_host_app.c @@ -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
diff --git a/demos/host/src/rndis_host_app.c b/demos/host/src/rndis_host_app.c index 4b33144d8..e6b37e4d3 100644 --- a/demos/host/src/rndis_host_app.c +++ b/demos/host/src/rndis_host_app.c @@ -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 |
