summaryrefslogtreecommitdiff
path: root/tinyusb/osal
diff options
context:
space:
mode:
Diffstat (limited to 'tinyusb/osal')
-rw-r--r--tinyusb/osal/osal.c2
-rw-r--r--tinyusb/osal/osal.h11
2 files changed, 3 insertions, 10 deletions
diff --git a/tinyusb/osal/osal.c b/tinyusb/osal/osal.c
index 6bf799d59..f2078b09c 100644
--- a/tinyusb/osal/osal.c
+++ b/tinyusb/osal/osal.c
@@ -43,7 +43,7 @@
//--------------------------------------------------------------------+
// TICK API
//--------------------------------------------------------------------+
-#if CFG_TUSB_OS == TUSB_OS_FREERTOS
+#if CFG_TUSB_OS == OPT_OS_FREERTOS
uint32_t tusb_hal_millis(void)
{
diff --git a/tinyusb/osal/osal.h b/tinyusb/osal/osal.h
index f87423d18..93d50699d 100644
--- a/tinyusb/osal/osal.h
+++ b/tinyusb/osal/osal.h
@@ -46,13 +46,6 @@
/** \addtogroup group_osal
* @{ */
-/** \defgroup group_supported_os Supported RTOS
- * \brief \ref CFG_TUSB_OS must be defined to one of these
- * @{ */
-#define TUSB_OS_NONE 1 ///< No RTOS is used
-#define TUSB_OS_FREERTOS 2 ///< FreeRTOS is used
-/** @} */
-
#include "tusb_option.h"
#include "common/tusb_common.h"
@@ -64,11 +57,11 @@ enum
};
-#if CFG_TUSB_OS == TUSB_OS_NONE
+#if CFG_TUSB_OS == OPT_OS_NONE
#include "osal_none.h"
#else
- #if CFG_TUSB_OS == TUSB_OS_FREERTOS
+ #if CFG_TUSB_OS == OPT_OS_FREERTOS
#include "osal_freeRTOS.h"
#else
#error CFG_TUSB_OS is not defined or OS is not supported yet