summaryrefslogtreecommitdiff
path: root/examples/obsolete/host/src/main.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-04-12 12:55:53 +0700
committerhathach <[email protected]>2018-04-12 12:55:53 +0700
commit18f97fef7e35937c017f2b2ad2300a920256f66b (patch)
treeaf34770b4d075588f91b0e335f949b82283ad11c /examples/obsolete/host/src/main.c
parentdf367bac54ac8926c51f2d8f11e4ca9a0abf50a8 (diff)
rename TUSB_OS_NONE, TUSB_OS_FREERTOS to OPT_OS_NONE, OPT_OS_FREERTOS
Diffstat (limited to 'examples/obsolete/host/src/main.c')
-rw-r--r--examples/obsolete/host/src/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/obsolete/host/src/main.c b/examples/obsolete/host/src/main.c
index 6f108c441..90c64f849 100644
--- a/examples/obsolete/host/src/main.c
+++ b/examples/obsolete/host/src/main.c
@@ -64,7 +64,7 @@ void print_greeting(void);
// IMPLEMENTATION
//--------------------------------------------------------------------+
-#if CFG_TUSB_OS == TUSB_OS_NONE
+#if CFG_TUSB_OS == OPT_OS_NONE
// like a real RTOS, this function is a main loop invoking each task in application and never return
void os_none_start_scheduler(void)
{
@@ -101,9 +101,9 @@ int main(void)
cdc_serial_host_app_init();
//------------- start OS scheduler (never return) -------------//
-#if CFG_TUSB_OS == TUSB_OS_FREERTOS
+#if CFG_TUSB_OS == OPT_OS_FREERTOS
vTaskStartScheduler();
-#elif CFG_TUSB_OS == TUSB_OS_NONE
+#elif CFG_TUSB_OS == OPT_OS_NONE
os_none_start_scheduler();
#elif CFG_TUSB_OS == TUSB_OS_CMSIS_RTX
osKernelStart();
@@ -121,8 +121,8 @@ void print_greeting(void)
{
char const * const rtos_name[] =
{
- [TUSB_OS_NONE] = "None",
- [TUSB_OS_FREERTOS] = "FreeRTOS",
+ [OPT_OS_NONE] = "None",
+ [OPT_OS_FREERTOS] = "FreeRTOS",
};
puts("\n\