diff options
| author | hathach <[email protected]> | 2018-04-10 14:31:11 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-04-10 14:31:11 +0700 |
| commit | 3c2467196070eeedd4171e183db04fb815677246 (patch) | |
| tree | 742e3f277776b025ee0f90ab63ef2f70a3b3d03a /examples/obsolete/device/src/main.c | |
| parent | 3473c71a6a7cb22cb45f368dba4edda49ed8f7af (diff) | |
mass rename TUSB_CFG to CFG_TUSB
Diffstat (limited to 'examples/obsolete/device/src/main.c')
| -rw-r--r-- | examples/obsolete/device/src/main.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/obsolete/device/src/main.c b/examples/obsolete/device/src/main.c index 0cd9eb3bc..802883ce4 100644 --- a/examples/obsolete/device/src/main.c +++ b/examples/obsolete/device/src/main.c @@ -64,7 +64,7 @@ void led_blinking_init(void); void led_blinking_task(void* param); -#if TUSB_CFG_OS == TUSB_OS_NONE +#if CFG_TUSB_OS == TUSB_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) { @@ -97,9 +97,9 @@ int main(void) cdc_serial_app_init(); //------------- start OS scheduler (never return) -------------// -#if TUSB_CFG_OS == TUSB_OS_FREERTOS +#if CFG_TUSB_OS == TUSB_OS_FREERTOS vTaskStartScheduler(); -#elif TUSB_CFG_OS == TUSB_OS_NONE +#elif CFG_TUSB_OS == TUSB_OS_NONE os_none_start_scheduler(); #else #error need to start RTOS schduler @@ -193,9 +193,9 @@ void print_greeting(void) ); puts("This DEVICE demo is configured to support:"); - printf(" - RTOS = %s\n", rtos_name[TUSB_CFG_OS]); - if (TUSB_CFG_DEVICE_HID_MOUSE ) puts(" - HID Mouse"); - if (TUSB_CFG_DEVICE_HID_KEYBOARD ) puts(" - HID Keyboard"); - if (TUSB_CFG_DEVICE_MSC ) puts(" - Mass Storage"); - if (TUSB_CFG_DEVICE_CDC ) puts(" - Communication Device Class"); + printf(" - RTOS = %s\n", rtos_name[CFG_TUSB_OS]); + if (CFG_TUSB_DEVICE_HID_MOUSE ) puts(" - HID Mouse"); + if (CFG_TUSB_DEVICE_HID_KEYBOARD ) puts(" - HID Keyboard"); + if (CFG_TUSB_DEVICE_MSC ) puts(" - Mass Storage"); + if (CFG_TUSB_DEVICE_CDC ) puts(" - Communication Device Class"); } |
