From e7d7cb222a32f768b47e6e39d92d12ed187a7055 Mon Sep 17 00:00:00 2001 From: hathach Date: Fri, 13 Apr 2018 16:10:42 +0700 Subject: [PATCH] rename CFG_TUSB_OS_TASK_PRIO to CFG_TUD_TASK_PRIO, TUC_DEVICE_STACKSIZE to CFG_TUD_TASK_STACKSIZE --- doxygen/configuration.txt | 2 +- doxygen/getting_started.md | 2 +- .../device_virtual_com/src/tusb_config.h | 2 +- examples/device/nrf52840/src/tusb_config.h | 2 +- .../obsolete/device/device_freertos/.cproject | 12 ++--- examples/obsolete/device/src/app_os_prio.h | 2 +- examples/obsolete/device/src/tusb_config.h | 2 +- .../obsolete/host/host_freertos/.cproject | 8 ++-- examples/obsolete/host/src/app_os_prio.h | 2 +- examples/obsolete/host/src/tusb_config.h | 2 +- tinyusb/device/usbd.c | 48 ++++++------------- tinyusb/host/usbh.c | 6 +-- tinyusb/tusb_option.h | 4 +- 13 files changed, 37 insertions(+), 57 deletions(-) diff --git a/doxygen/configuration.txt b/doxygen/configuration.txt index e79345416..08fadd89c 100644 --- a/doxygen/configuration.txt +++ b/doxygen/configuration.txt @@ -20,7 +20,7 @@ #define CFG_TUSB_MCU ///< Select one of the supported MCU, the value must be from \ref group_mcu #define CFG_TUSB_OS ///< Select one of the supported RTOS, the value must be from \ref group_supported_os. -#define CFG_TUSB_OS_TASK_PRIO ///< If \ref CFG_TUSB_OS is configured to use a real RTOS (other than OPT_OS_NONE). This determines the priority of the usb stack task. +#define CFG_TUD_TASK_PRIO ///< If \ref CFG_TUSB_OS is configured to use a real RTOS (other than OPT_OS_NONE). This determines the priority of the usb stack task. //--------------------------------------------------------------------+ // HOST CONFIGURATION diff --git a/doxygen/getting_started.md b/doxygen/getting_started.md index 79bc8f01f..d9308decc 100644 --- a/doxygen/getting_started.md +++ b/doxygen/getting_started.md @@ -35,7 +35,7 @@ It is relatively simple to incorporate tinyusb to your (existing) project 1. Copy core folder **tinyusb** to your project. Let's say it is *your_project/tinyusb* 2. Add all the .c in the core folder to your project settings (uvproj, ewp, makefile) 3. Add *your_project/tinysb* to your include path. Also make sure your current include path also contains the configuration file tusb_config.h. Or you could simply put the tusb_config.h into the tinyusb folder as well. -4. Make sure all required macros are all defined properly in tusb_config.h (configure file in demo application is sufficient, but you need to add a few more such as CFG_TUSB_MCU, CFG_TUSB_OS, CFG_TUSB_OS_TASK_PRIO since they are passed by IDE/compiler to maintain a unique configure for all demo projects). +4. Make sure all required macros are all defined properly in tusb_config.h (configure file in demo application is sufficient, but you need to add a few more such as CFG_TUSB_MCU, CFG_TUSB_OS, CFG_TUD_TASK_PRIO since they are passed by IDE/compiler to maintain a unique configure for all demo projects). 5. If you use the device stack, make sure you have created/modified usb descriptors for your own need. Ultimately you need to fill out required pointers in tusbd_descriptor_pointers for that stack to work. 6. Add tusb_init() call to your reset initialization code. 7. Implement all enabled classes's callbacks. diff --git a/examples/device/device_virtual_com/src/tusb_config.h b/examples/device/device_virtual_com/src/tusb_config.h index 7d2a9c539..a595f83b5 100644 --- a/examples/device/device_virtual_com/src/tusb_config.h +++ b/examples/device/device_virtual_com/src/tusb_config.h @@ -69,7 +69,7 @@ #define CFG_TUSB_DEBUG 2 //#define CFG_TUSB_OS OPT_OS_NONE // be passed from IDE/command line for easy project switching -//#define CFG_TUSB_OS_TASK_PRIO 0 // be passed from IDE/command line for easy project switching +//#define CFG_TUD_TASK_PRIO 0 // be passed from IDE/command line for easy project switching //--------------------------------------------------------------------+ // USB RAM PLACEMENT diff --git a/examples/device/nrf52840/src/tusb_config.h b/examples/device/nrf52840/src/tusb_config.h index c58798040..1e2e2ac33 100644 --- a/examples/device/nrf52840/src/tusb_config.h +++ b/examples/device/nrf52840/src/tusb_config.h @@ -69,7 +69,7 @@ #define CFG_TUSB_DEBUG 2 #define CFG_TUSB_OS OPT_OS_NONE // be passed from IDE/command line for easy project switching -//#define CFG_TUSB_OS_TASK_PRIO 0 // be passed from IDE/command line for easy project switching +//#define CFG_TUD_TASK_PRIO 0 // be passed from IDE/command line for easy project switching //--------------------------------------------------------------------+ // USB RAM PLACEMENT diff --git a/examples/obsolete/device/device_freertos/.cproject b/examples/obsolete/device/device_freertos/.cproject index b5985e296..c109cb4ef 100644 --- a/examples/obsolete/device/device_freertos/.cproject +++ b/examples/obsolete/device/device_freertos/.cproject @@ -33,7 +33,7 @@