From d45b8d7aa7334bb086696b216fa26db51c216836 Mon Sep 17 00:00:00 2001 From: David Lin Date: Thu, 4 Mar 2021 17:27:52 +0800 Subject: [PATCH 01/12] Mini optimized the TencentOS_timer.h _KERNEL_OS_FREERTOS_OS_TIMER_H_ -> _KERNEL_OS_TENCENT_OS_TIMER_H_ --- .../include/kernel/TencentOS_Adapter/TencentOS_timer.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_timer.h b/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_timer.h index 4f77b1a6..aaa91eec 100644 --- a/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_timer.h +++ b/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_timer.h @@ -1,11 +1,11 @@ /** - * @file freertos_timer.h + * @file TencentOS_timer.h * @author LightningSemi WLAN Team * Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved. */ -#ifndef _KERNEL_OS_FREERTOS_OS_TIMER_H_ -#define _KERNEL_OS_FREERTOS_OS_TIMER_H_ +#ifndef _KERNEL_OS_TENCENT_OS_TIMER_H_ +#define _KERNEL_OS_TENCENT_OS_TIMER_H_ #include "./TencentOS_Adapter/TencentOS_common.h" #include "tos_k.h" @@ -40,4 +40,4 @@ OS_Status OS_TimerStop(OS_Timer_t *timer); } #endif -#endif /* _KERNEL_OS_FREERTOS_OS_TIMER_H_ */ +#endif /* _KERNEL_OS_TENCENT_OS_TIMER_H_ */ From ec4ec6f3920b23c6b97e6286eddc8dfbe2a4706d Mon Sep 17 00:00:00 2001 From: David Lin Date: Thu, 4 Mar 2021 17:48:16 +0800 Subject: [PATCH 02/12] Mini optimized the TencentOS_common.h _KERNEL_OS_FREERTOS_OS_COMMON_H_ -> _KERNEL_OS_TENCENT_OS_COMMON_H_ --- .../include/kernel/TencentOS_Adapter/TencentOS_common.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_common.h b/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_common.h index 9d8f00a9..7c8f97c5 100644 --- a/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_common.h +++ b/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_common.h @@ -1,11 +1,11 @@ /** - * @file freertos_common.h + * @file TencentOS_common.h * @author LightningSemi WLAN Team * Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved. */ -#ifndef _KERNEL_OS_FREERTOS_OS_COMMON_H_ -#define _KERNEL_OS_FREERTOS_OS_COMMON_H_ +#ifndef _KERNEL_OS_TENCENT_OS_COMMON_H_ +#define _KERNEL_OS_TENCENT_OS_COMMON_H_ #include //#include "compiler.h" @@ -74,6 +74,6 @@ void os_heap_mem_add_pool(void); } #endif -#endif /* _KERNEL_OS_FREERTOS_OS_COMMON_H_ */ +#endif /* _KERNEL_OS_TENCENT_OS_COMMON_H_ */ From 0a0fa416b80a774965fdfd7337e446583fb29143 Mon Sep 17 00:00:00 2001 From: David Lin Date: Thu, 4 Mar 2021 17:49:42 +0800 Subject: [PATCH 03/12] Mini optimized the TencentOS_cpuusage.h _FREERTOS_CPUUSAGE_H__ -> _TENCENTOS_CPUUSAGE_H__ --- .../include/kernel/TencentOS_Adapter/TencentOS_cpuusage.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_cpuusage.h b/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_cpuusage.h index 46e8d767..cc7f2adc 100644 --- a/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_cpuusage.h +++ b/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_cpuusage.h @@ -1,5 +1,5 @@ -#ifndef _FREERTOS_CPUUSAGE_H__ -#define _FREERTOS_CPUUSAGE_H__ +#ifndef _TENCENTOS_CPUUSAGE_H__ +#define _TENCENTOS_CPUUSAGE_H__ #include "./TencentOS_Adapter/tos_common.h" From 40b0484eebe4bbd1eb7cad95b23872b1e7e8ab1a Mon Sep 17 00:00:00 2001 From: David Lin Date: Thu, 4 Mar 2021 17:52:52 +0800 Subject: [PATCH 04/12] Update TencentOS_cpuusage.h --- .../include/kernel/TencentOS_Adapter/TencentOS_cpuusage.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_cpuusage.h b/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_cpuusage.h index cc7f2adc..53a5fa6b 100644 --- a/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_cpuusage.h +++ b/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_cpuusage.h @@ -21,4 +21,4 @@ uint16_t osGetCPUUsage (void); } #endif -#endif /* _FREERTOS_CPUUSAGE_H__ */ +#endif /* _TENCENTOS_CPUUSAGE_H__ */ From 81a0ce11ddc1e98dbd419586f055500aba9cc029 Mon Sep 17 00:00:00 2001 From: David Lin Date: Thu, 4 Mar 2021 17:53:40 +0800 Subject: [PATCH 05/12] Update TencentOS_debug.h _FREERTOS_DEBUG_H_ -> _TENCENTOS_DEBUG_H_ --- .../include/kernel/TencentOS_Adapter/TencentOS_debug.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_debug.h b/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_debug.h index 14e3106b..8cac16ea 100644 --- a/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_debug.h +++ b/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_debug.h @@ -1,11 +1,11 @@ /** - * @file freertos_debug.h + * @file TencentOS_debug.h * @author LightningSemi WLAN Team * Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved. */ -#ifndef _FREERTOS_DEBUG_H_ -#define _FREERTOS_DEBUG_H_ +#ifndef _TENCENTOS_DEBUG_H_ +#define _TENCENTOS_DEBUG_H_ #include //#include "compiler.h" @@ -82,4 +82,4 @@ extern void exception_panic(const char *file, const char *func, const int line); } #endif -#endif /* _FREERTOS_DEBUG_H_ */ +#endif /* _TENCENTOS_DEBUG_H_ */ From c57ef1d82238749f45a0aae6dd8857560a59f0e7 Mon Sep 17 00:00:00 2001 From: David Lin Date: Thu, 4 Mar 2021 17:55:15 +0800 Subject: [PATCH 06/12] Update TencentOS_errno.h _KERNEL_OS_FREERTOS_OS_ERRNO_H_ -> _KERNEL_OS_TENCENT_OS_ERRNO_H_ --- .../include/kernel/TencentOS_Adapter/TencentOS_errno.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_errno.h b/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_errno.h index 6d73b8cf..d90a06a7 100644 --- a/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_errno.h +++ b/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_errno.h @@ -1,11 +1,11 @@ /** - * @file freertos_errno.h + * @file TencentOS_errno.h * @author LightningSemi WLAN Team * Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved. */ -#ifndef _KERNEL_OS_FREERTOS_OS_ERRNO_H_ -#define _KERNEL_OS_FREERTOS_OS_ERRNO_H_ +#ifndef _KERNEL_OS_TENCENT_OS_ERRNO_H_ +#define _KERNEL_OS_TENCENT_OS_ERRNO_H_ #include "./TencentOS/adapter_common.h" @@ -39,4 +39,4 @@ static __always_inline void OS_SetErrno(int err) } #endif -#endif /* _KERNEL_OS_FREERTOS_OS_ERRNO_H_ */ +#endif /* _KERNEL_OS_TENCENT_OS_ERRNO_H_ */ From 81117fcab7626487bd6dd2389417567c7b6cff61 Mon Sep 17 00:00:00 2001 From: David Lin Date: Thu, 4 Mar 2021 17:56:46 +0800 Subject: [PATCH 07/12] Update TencentOS_mutex.h _KERNEL_OS_FREERTOS_OS_MUTEX_H_ -> _KERNEL_OS_TENCENT_OS_MUTEX_H_ --- .../include/kernel/TencentOS_Adapter/TencentOS_mutex.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_mutex.h b/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_mutex.h index 5a7b2631..feac6593 100644 --- a/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_mutex.h +++ b/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_mutex.h @@ -1,11 +1,11 @@ /** - * @file freertos_mutex.h + * @file TencentOS_mutex.h * @author LightningSemi WLAN Team * Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved. */ -#ifndef _KERNEL_OS_FREERTOS_OS_MUTEX_H_ -#define _KERNEL_OS_FREERTOS_OS_MUTEX_H_ +#ifndef _KERNEL_OS_TENCENT_OS_MUTEX_H_ +#define _KERNEL_OS_TENCENT_OS_MUTEX_H_ #include "./TencentOS_Adapter/TencentOS_common.h" #include "./TencentOS_Adapter/TencentOS_time.h" @@ -61,4 +61,4 @@ static __always_inline void OS_MutexSetInvalid(OS_Mutex_t *mutex) } #endif -#endif /* _KERNEL_OS_FREERTOS_OS_MUTEX_H_ */ +#endif /* _KERNEL_OS_TENCENT_OS_MUTEX_H_ */ From cb49bfb4131e400b6cfb3f01534e88e5ded62e73 Mon Sep 17 00:00:00 2001 From: David Lin Date: Thu, 4 Mar 2021 17:57:36 +0800 Subject: [PATCH 08/12] Update TencentOS_queue.h _KERNEL_OS_FREERTOS_OS_QUEUE_H_ -> _KERNEL_OS_TENCENT_OS_QUEUE_H_ --- .../include/kernel/TencentOS_Adapter/TencentOS_queue.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_queue.h b/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_queue.h index df21541a..ae67f23c 100644 --- a/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_queue.h +++ b/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_queue.h @@ -1,11 +1,11 @@ /** - * @file freertos_queue.h + * @file TencentOS_queue.h * @author LightningSemi WLAN Team * Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved. */ -#ifndef _KERNEL_OS_FREERTOS_OS_QUEUE_H_ -#define _KERNEL_OS_FREERTOS_OS_QUEUE_H_ +#ifndef _KERNEL_OS_TENCENT_OS_QUEUE_H_ +#define _KERNEL_OS_TENCENT_OS_QUEUE_H_ #include "./TencentOS_Adapter/TencentOS_common.h" From 918f84b3b1a0bad99eafbc63e10c95ce1524ab44 Mon Sep 17 00:00:00 2001 From: David Lin Date: Thu, 4 Mar 2021 17:57:59 +0800 Subject: [PATCH 09/12] Update TencentOS_queue.h --- .../ln882x/include/kernel/TencentOS_Adapter/TencentOS_queue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_queue.h b/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_queue.h index ae67f23c..08340ddd 100644 --- a/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_queue.h +++ b/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_queue.h @@ -52,4 +52,4 @@ static __always_inline void OS_MsgQueueSetInvalid(OS_MsgQueue_t *queue) } #endif -#endif /* _KERNEL_OS_FREERTOS_OS_QUEUE_H_ */ +#endif /* _KERNEL_OS_TENCENT_OS_QUEUE_H_ */ From 5fa6dae80fd71d63be0482c51a59ce54fd9f0f16 Mon Sep 17 00:00:00 2001 From: David Lin Date: Thu, 4 Mar 2021 17:58:52 +0800 Subject: [PATCH 10/12] Update TencentOS_semaphore.h _KERNEL_OS_FREERTOS_OS_SEMAPHORE_H_ -> _KERNEL_OS_TENCENT_OS_SEMAPHORE_H_ --- .../kernel/TencentOS_Adapter/TencentOS_semaphore.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_semaphore.h b/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_semaphore.h index 168485ea..90991d0c 100644 --- a/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_semaphore.h +++ b/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_semaphore.h @@ -1,11 +1,11 @@ /** - * @file freertos_semaphore.h + * @file TencentOS_semaphore.h * @author LightningSemi WLAN Team * Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved. */ -#ifndef _KERNEL_OS_FREERTOS_OS_SEMAPHORE_H_ -#define _KERNEL_OS_FREERTOS_OS_SEMAPHORE_H_ +#ifndef _KERNEL_OS_TENCENT_OS_SEMAPHORE_H_ +#define _KERNEL_OS_TENCENT_OS_SEMAPHORE_H_ #include "./TencentOS_Adapter/TencentOS_common.h" #include "tos_k.h" @@ -42,4 +42,4 @@ static __always_inline void OS_SemaphoreSetInvalid(OS_Semaphore_t *sem) } #endif -#endif /* _KERNEL_OS_FREERTOS_OS_SEMAPHORE_H_ */ +#endif /* _KERNEL_OS_TENCENT_OS_SEMAPHORE_H_ */ From 207d563b2449820d173e6267f2e26034eda946fc Mon Sep 17 00:00:00 2001 From: David Lin Date: Thu, 4 Mar 2021 17:59:48 +0800 Subject: [PATCH 11/12] Update TencentOS_thread.h _KERNEL_OS_FREERTOS_OS_THREAD_H_ -> _KERNEL_OS_TENCENT_OS_THREAD_H_ --- .../include/kernel/TencentOS_Adapter/TencentOS_thread.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_thread.h b/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_thread.h index 29e5e563..cf5a07c5 100644 --- a/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_thread.h +++ b/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_thread.h @@ -1,11 +1,11 @@ /** - * @file freertos_thread.h + * @file TencentOS_thread.h * @author LightningSemi WLAN Team * Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved. */ -#ifndef _KERNEL_OS_FREERTOS_OS_THREAD_H_ -#define _KERNEL_OS_FREERTOS_OS_THREAD_H_ +#ifndef _KERNEL_OS_TENCENT_OS_THREAD_H_ +#define _KERNEL_OS_TENCENT_OS_THREAD_H_ #include "./TencentOS_Adapter/TencentOS_common.h" #include "./TencentOS_Adapter/TencentOS_time.h" @@ -74,4 +74,4 @@ static __always_inline int OS_ThreadIsSchedulerRunning(void) } #endif -#endif /* _KERNEL_OS_FREERTOS_OS_THREAD_H_ */ +#endif /* _KERNEL_OS_TENCENT_OS_THREAD_H_ */ From 20c27eaa463fff1379dd4514adc28a4a949c0348 Mon Sep 17 00:00:00 2001 From: David Lin Date: Thu, 4 Mar 2021 18:00:37 +0800 Subject: [PATCH 12/12] Update TencentOS_time.h _KERNEL_OS_FREERTOS_OS_TIME_H_ -> _KERNEL_OS_TENCENT_OS_TIME_H_ --- .../include/kernel/TencentOS_Adapter/TencentOS_time.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_time.h b/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_time.h index 56033355..cbeb6be4 100644 --- a/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_time.h +++ b/platform/vendor_bsp/LN/ln882x/include/kernel/TencentOS_Adapter/TencentOS_time.h @@ -1,11 +1,11 @@ /** - * @file freertos_time.h + * @file TencentOS_time.h * @author LightningSemi WLAN Team * Copyright (C) 2018 LightningSemi Technology Co., Ltd. All rights reserved. */ -#ifndef _KERNEL_OS_FREERTOS_OS_TIME_H_ -#define _KERNEL_OS_FREERTOS_OS_TIME_H_ +#ifndef _KERNEL_OS_TENCENT_OS_TIME_H_ +#define _KERNEL_OS_TENCENT_OS_TIME_H_ #include "./TencentOS_Adapter/TencentOS_common.h" #include "tos_k.h" @@ -77,4 +77,4 @@ static __always_inline TickType_t OS_CalcWaitTicks(OS_Time_t msec) } #endif -#endif /* _KERNEL_OS_FREERTOS_OS_TIME_H_ */ +#endif /* _KERNEL_OS_TENCENT_OS_TIME_H_ */