From 18f97fef7e35937c017f2b2ad2300a920256f66b Mon Sep 17 00:00:00 2001 From: hathach Date: Thu, 12 Apr 2018 12:55:53 +0700 Subject: rename TUSB_OS_NONE, TUSB_OS_FREERTOS to OPT_OS_NONE, OPT_OS_FREERTOS --- tinyusb/osal/osal.c | 2 +- tinyusb/osal/osal.h | 11 ++--------- 2 files changed, 3 insertions(+), 10 deletions(-) (limited to 'tinyusb/osal') 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 -- cgit v1.3.1