Merge pull request #297 from DavidLin1577/patch-10

Mini optimized the TencentOS_timer.h
This commit is contained in:
Supowang
2021-03-08 14:30:22 +08:00
committed by GitHub
10 changed files with 39 additions and 39 deletions

View File

@@ -1,11 +1,11 @@
/** /**
* @file freertos_common.h * @file TencentOS_common.h
* @author LightningSemi WLAN Team * @author LightningSemi WLAN Team
* Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved. * Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved.
*/ */
#ifndef _KERNEL_OS_FREERTOS_OS_COMMON_H_ #ifndef _KERNEL_OS_TENCENT_OS_COMMON_H_
#define _KERNEL_OS_FREERTOS_OS_COMMON_H_ #define _KERNEL_OS_TENCENT_OS_COMMON_H_
#include <stdint.h> #include <stdint.h>
//#include "compiler.h" //#include "compiler.h"
@@ -74,6 +74,6 @@ void os_heap_mem_add_pool(void);
} }
#endif #endif
#endif /* _KERNEL_OS_FREERTOS_OS_COMMON_H_ */ #endif /* _KERNEL_OS_TENCENT_OS_COMMON_H_ */

View File

@@ -1,5 +1,5 @@
#ifndef _FREERTOS_CPUUSAGE_H__ #ifndef _TENCENTOS_CPUUSAGE_H__
#define _FREERTOS_CPUUSAGE_H__ #define _TENCENTOS_CPUUSAGE_H__
#include "./TencentOS_Adapter/tos_common.h" #include "./TencentOS_Adapter/tos_common.h"
@@ -21,4 +21,4 @@ uint16_t osGetCPUUsage (void);
} }
#endif #endif
#endif /* _FREERTOS_CPUUSAGE_H__ */ #endif /* _TENCENTOS_CPUUSAGE_H__ */

View File

@@ -1,11 +1,11 @@
/** /**
* @file freertos_debug.h * @file TencentOS_debug.h
* @author LightningSemi WLAN Team * @author LightningSemi WLAN Team
* Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved. * Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved.
*/ */
#ifndef _FREERTOS_DEBUG_H_ #ifndef _TENCENTOS_DEBUG_H_
#define _FREERTOS_DEBUG_H_ #define _TENCENTOS_DEBUG_H_
#include <stdio.h> #include <stdio.h>
//#include "compiler.h" //#include "compiler.h"
@@ -82,4 +82,4 @@ extern void exception_panic(const char *file, const char *func, const int line);
} }
#endif #endif
#endif /* _FREERTOS_DEBUG_H_ */ #endif /* _TENCENTOS_DEBUG_H_ */

View File

@@ -1,11 +1,11 @@
/** /**
* @file freertos_errno.h * @file TencentOS_errno.h
* @author LightningSemi WLAN Team * @author LightningSemi WLAN Team
* Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved. * Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved.
*/ */
#ifndef _KERNEL_OS_FREERTOS_OS_ERRNO_H_ #ifndef _KERNEL_OS_TENCENT_OS_ERRNO_H_
#define _KERNEL_OS_FREERTOS_OS_ERRNO_H_ #define _KERNEL_OS_TENCENT_OS_ERRNO_H_
#include "./TencentOS/adapter_common.h" #include "./TencentOS/adapter_common.h"
@@ -39,4 +39,4 @@ static __always_inline void OS_SetErrno(int err)
} }
#endif #endif
#endif /* _KERNEL_OS_FREERTOS_OS_ERRNO_H_ */ #endif /* _KERNEL_OS_TENCENT_OS_ERRNO_H_ */

View File

@@ -1,11 +1,11 @@
/** /**
* @file freertos_mutex.h * @file TencentOS_mutex.h
* @author LightningSemi WLAN Team * @author LightningSemi WLAN Team
* Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved. * Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved.
*/ */
#ifndef _KERNEL_OS_FREERTOS_OS_MUTEX_H_ #ifndef _KERNEL_OS_TENCENT_OS_MUTEX_H_
#define _KERNEL_OS_FREERTOS_OS_MUTEX_H_ #define _KERNEL_OS_TENCENT_OS_MUTEX_H_
#include "./TencentOS_Adapter/TencentOS_common.h" #include "./TencentOS_Adapter/TencentOS_common.h"
#include "./TencentOS_Adapter/TencentOS_time.h" #include "./TencentOS_Adapter/TencentOS_time.h"
@@ -61,4 +61,4 @@ static __always_inline void OS_MutexSetInvalid(OS_Mutex_t *mutex)
} }
#endif #endif
#endif /* _KERNEL_OS_FREERTOS_OS_MUTEX_H_ */ #endif /* _KERNEL_OS_TENCENT_OS_MUTEX_H_ */

View File

@@ -1,11 +1,11 @@
/** /**
* @file freertos_queue.h * @file TencentOS_queue.h
* @author LightningSemi WLAN Team * @author LightningSemi WLAN Team
* Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved. * Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved.
*/ */
#ifndef _KERNEL_OS_FREERTOS_OS_QUEUE_H_ #ifndef _KERNEL_OS_TENCENT_OS_QUEUE_H_
#define _KERNEL_OS_FREERTOS_OS_QUEUE_H_ #define _KERNEL_OS_TENCENT_OS_QUEUE_H_
#include "./TencentOS_Adapter/TencentOS_common.h" #include "./TencentOS_Adapter/TencentOS_common.h"
@@ -52,4 +52,4 @@ static __always_inline void OS_MsgQueueSetInvalid(OS_MsgQueue_t *queue)
} }
#endif #endif
#endif /* _KERNEL_OS_FREERTOS_OS_QUEUE_H_ */ #endif /* _KERNEL_OS_TENCENT_OS_QUEUE_H_ */

View File

@@ -1,11 +1,11 @@
/** /**
* @file freertos_semaphore.h * @file TencentOS_semaphore.h
* @author LightningSemi WLAN Team * @author LightningSemi WLAN Team
* Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved. * Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved.
*/ */
#ifndef _KERNEL_OS_FREERTOS_OS_SEMAPHORE_H_ #ifndef _KERNEL_OS_TENCENT_OS_SEMAPHORE_H_
#define _KERNEL_OS_FREERTOS_OS_SEMAPHORE_H_ #define _KERNEL_OS_TENCENT_OS_SEMAPHORE_H_
#include "./TencentOS_Adapter/TencentOS_common.h" #include "./TencentOS_Adapter/TencentOS_common.h"
#include "tos_k.h" #include "tos_k.h"
@@ -42,4 +42,4 @@ static __always_inline void OS_SemaphoreSetInvalid(OS_Semaphore_t *sem)
} }
#endif #endif
#endif /* _KERNEL_OS_FREERTOS_OS_SEMAPHORE_H_ */ #endif /* _KERNEL_OS_TENCENT_OS_SEMAPHORE_H_ */

View File

@@ -1,11 +1,11 @@
/** /**
* @file freertos_thread.h * @file TencentOS_thread.h
* @author LightningSemi WLAN Team * @author LightningSemi WLAN Team
* Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved. * Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved.
*/ */
#ifndef _KERNEL_OS_FREERTOS_OS_THREAD_H_ #ifndef _KERNEL_OS_TENCENT_OS_THREAD_H_
#define _KERNEL_OS_FREERTOS_OS_THREAD_H_ #define _KERNEL_OS_TENCENT_OS_THREAD_H_
#include "./TencentOS_Adapter/TencentOS_common.h" #include "./TencentOS_Adapter/TencentOS_common.h"
#include "./TencentOS_Adapter/TencentOS_time.h" #include "./TencentOS_Adapter/TencentOS_time.h"
@@ -74,4 +74,4 @@ static __always_inline int OS_ThreadIsSchedulerRunning(void)
} }
#endif #endif
#endif /* _KERNEL_OS_FREERTOS_OS_THREAD_H_ */ #endif /* _KERNEL_OS_TENCENT_OS_THREAD_H_ */

View File

@@ -1,11 +1,11 @@
/** /**
* @file freertos_time.h * @file TencentOS_time.h
* @author LightningSemi WLAN Team * @author LightningSemi WLAN Team
* Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved. * Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved.
*/ */
#ifndef _KERNEL_OS_FREERTOS_OS_TIME_H_ #ifndef _KERNEL_OS_TENCENT_OS_TIME_H_
#define _KERNEL_OS_FREERTOS_OS_TIME_H_ #define _KERNEL_OS_TENCENT_OS_TIME_H_
#include "./TencentOS_Adapter/TencentOS_common.h" #include "./TencentOS_Adapter/TencentOS_common.h"
#include "tos_k.h" #include "tos_k.h"
@@ -77,4 +77,4 @@ static __always_inline TickType_t OS_CalcWaitTicks(OS_Time_t msec)
} }
#endif #endif
#endif /* _KERNEL_OS_FREERTOS_OS_TIME_H_ */ #endif /* _KERNEL_OS_TENCENT_OS_TIME_H_ */

View File

@@ -1,11 +1,11 @@
/** /**
* @file freertos_timer.h * @file TencentOS_timer.h
* @author LightningSemi WLAN Team * @author LightningSemi WLAN Team
* Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved. * Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved.
*/ */
#ifndef _KERNEL_OS_FREERTOS_OS_TIMER_H_ #ifndef _KERNEL_OS_TENCENT_OS_TIMER_H_
#define _KERNEL_OS_FREERTOS_OS_TIMER_H_ #define _KERNEL_OS_TENCENT_OS_TIMER_H_
#include "./TencentOS_Adapter/TencentOS_common.h" #include "./TencentOS_Adapter/TencentOS_common.h"
#include "tos_k.h" #include "tos_k.h"
@@ -40,4 +40,4 @@ OS_Status OS_TimerStop(OS_Timer_t *timer);
} }
#endif #endif
#endif /* _KERNEL_OS_FREERTOS_OS_TIMER_H_ */ #endif /* _KERNEL_OS_TENCENT_OS_TIMER_H_ */