summaryrefslogtreecommitdiff
path: root/tinyusb/tusb_option.h
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 /tinyusb/tusb_option.h
parentdf367bac54ac8926c51f2d8f11e4ca9a0abf50a8 (diff)
rename TUSB_OS_NONE, TUSB_OS_FREERTOS to OPT_OS_NONE, OPT_OS_FREERTOS
Diffstat (limited to 'tinyusb/tusb_option.h')
-rw-r--r--tinyusb/tusb_option.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/tinyusb/tusb_option.h b/tinyusb/tusb_option.h
index 1c83abc50..b89b72782 100644
--- a/tinyusb/tusb_option.h
+++ b/tinyusb/tusb_option.h
@@ -36,8 +36,8 @@
*/
/**************************************************************************/
-#ifndef _TUSB_TUSB_OPTION_H_
-#define _TUSB_TUSB_OPTION_H_
+#ifndef _TUSB_OPTION_H_
+#define _TUSB_OPTION_H_
#define TUSB_VERSION_YEAR 00
#define TUSB_VERSION_MONTH 00
@@ -58,6 +58,14 @@
#define MCU_LPC43XX 7 ///< NXP LPC43xx family
/** @} */
+/** \defgroup group_supported_os Supported RTOS
+ * \brief \ref CFG_TUSB_OS must be defined to one of these
+ * @{ */
+#define OPT_OS_NONE 1 ///< No RTOS is used
+#define OPT_OS_FREERTOS 2 ///< FreeRTOS is used
+/** @} */
+
+
// Allow to use command line to change the config name/location
#ifndef CFG_TUSB_CONFIG_FILE
#define CFG_TUSB_CONFIG_FILE "tusb_config.h"
@@ -122,10 +130,10 @@
#endif
#ifndef CFG_TUSB_OS
-#define CFG_TUSB_OS TUSB_OS_NONE
+#define CFG_TUSB_OS OPT_OS_NONE
#endif
-#if (CFG_TUSB_OS != TUSB_OS_NONE) && !defined (CFG_TUSB_OS_TASK_PRIO)
+#if (CFG_TUSB_OS != OPT_OS_NONE) && !defined (CFG_TUSB_OS_TASK_PRIO)
#error CFG_TUSB_OS_TASK_PRIO need to be defined (hint: use the highest if possible)
#endif
@@ -192,6 +200,6 @@
//------------- CLASS -------------//
#endif // MODE_HOST_SUPPORTED
-#endif /* _TUSB_TUSB_OPTION_H_ */
+#endif /* _TUSB_OPTION_H_ */
/** @} */