summaryrefslogtreecommitdiff
path: root/examples/obsolete/host/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/obsolete/host/src')
-rw-r--r--examples/obsolete/host/src/app_os_prio.h4
-rw-r--r--examples/obsolete/host/src/main.c10
-rw-r--r--examples/obsolete/host/src/tusb_config.h2
3 files changed, 8 insertions, 8 deletions
diff --git a/examples/obsolete/host/src/app_os_prio.h b/examples/obsolete/host/src/app_os_prio.h
index 5eacd4c1e..51d72ddfa 100644
--- a/examples/obsolete/host/src/app_os_prio.h
+++ b/examples/obsolete/host/src/app_os_prio.h
@@ -53,9 +53,9 @@
#include "tusb.h"
-#if CFG_TUSB_OS == TUSB_OS_NONE
+#if CFG_TUSB_OS == OPT_OS_NONE
#define LOWER_PRIO(x) 0 // does not matter
-#elif CFG_TUSB_OS == TUSB_OS_FREERTOS
+#elif CFG_TUSB_OS == OPT_OS_FREERTOS
#define LOWER_PRIO(x) ((x)-1) // freeRTOS lower number --> lower priority
#elif CFG_TUSB_OS == TUSB_OS_CMSIS_RTX
#define LOWER_PRIO(x) ((x)-1) // CMSIS-RTOS lower number --> lower priority
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\
diff --git a/examples/obsolete/host/src/tusb_config.h b/examples/obsolete/host/src/tusb_config.h
index 8a103a0aa..9a13aa25a 100644
--- a/examples/obsolete/host/src/tusb_config.h
+++ b/examples/obsolete/host/src/tusb_config.h
@@ -68,7 +68,7 @@
//--------------------------------------------------------------------+
#define CFG_TUSB_DEBUG 2
-//#define CFG_TUSB_OS TUSB_OS_NONE // defined using eclipse build
+//#define CFG_TUSB_OS OPT_OS_NONE // defined using eclipse build
//#define CFG_TUSB_OS_TASK_PRIO 0 // defined using eclipse build
//--------------------------------------------------------------------+