添加THREADX系统支持

This commit is contained in:
andeyqi
2024-07-03 09:53:06 +08:00
parent 6013293ced
commit a300d9030b
3 changed files with 14 additions and 1 deletions
+4
View File
@@ -47,6 +47,7 @@
#define CMB_OS_PLATFORM_UCOSIII 2
#define CMB_OS_PLATFORM_FREERTOS 3
#define CMB_OS_PLATFORM_RTX5 4
#define CMB_OS_PLATFORM_THREADX 5
#define CMB_PRINT_LANGUAGE_ENGLISH 0
#define CMB_PRINT_LANGUAGE_CHINESE 1
@@ -348,6 +349,9 @@ if (!(EXPR)) \
extern char * vTaskName(void);
#elif (CMB_OS_PLATFORM_TYPE == CMB_OS_PLATFORM_RTX5)
#include "rtx_os.h"
#elif (CMB_OS_PLATFORM_TYPE == CMB_OS_PLATFORM_THREADX)
#include "tx_api.h"
#include "tx_thread.h"
#else
#error "not supported OS type"
#endif /* (CMB_OS_PLATFORM_TYPE == CMB_OS_PLATFORM_RTT) */