Added FX/NX.

This commit is contained in:
Yilin Sun 2023-05-09 09:17:54 +08:00
parent 79e0576ed2
commit 1989837a9a
Signed by: imi415
GPG Key ID: 17F01E106F9F5E0A
5 changed files with 22 additions and 0 deletions

3
.gitmodules vendored
View File

@ -7,3 +7,6 @@
[submodule "lib/filex"]
path = lib/filex
url = https://github.com/azure-rtos/filex.git
[submodule "lib/netxduo"]
path = lib/netxduo
url = https://github.com/azure-rtos/netxduo.git

View File

@ -133,6 +133,7 @@ set(TARGET_C_INCLUDES
# Shared libraries linked with application
set(TARGET_LIBS
"netxduo"
"filex"
"threadx"
"c"
@ -168,8 +169,12 @@ set(THREADX_TOOLCHAIN "gnu" CACHE STRING "")
set(TX_USER_FILE "${CMAKE_CURRENT_SOURCE_DIR}/include/tx_user.h" CACHE STRING "")
add_subdirectory(lib/threadx)
set(FX_USER_FILE "${CMAKE_CURRENT_SOURCE_DIR}/include/fx_user.h" CACHE STRING "")
add_subdirectory(lib/filex)
set(NX_USER_FILE "${CMAKE_CURRENT_SOURCE_DIR}/include/nx_user.h" CACHE STRING "")
add_subdirectory(lib/netxduo)
# Shared sources, includes and definitions
add_compile_definitions(${TARGET_C_DEFINES})
include_directories(${TARGET_C_INCLUDES})

4
include/fx_user.h Normal file
View File

@ -0,0 +1,4 @@
#ifndef FX_USER_H
#define FX_USER_H
#endif // FX_USER_H

9
include/nx_user.h Normal file
View File

@ -0,0 +1,9 @@
#ifndef NX_USER_H
#define NX_USER_H
#define NX_PACKET_ALIGNMENT 32
/* Security */
#define NX_SECURE_ENABLE
#endif // NX_USER_H

1
lib/netxduo Submodule

@ -0,0 +1 @@
Subproject commit e67c70ef358e36887bdb2ff7029807eaf234e97f