-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
67 lines (59 loc) · 1.86 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Copyright 2024 NXP
# SPDX-License-Identifier: BSD-3-Clause
if(CONFIG_MCUX_COMPONENT_middleware.wireless.xcvr)
# add other CmakeLists files if you need to
# mcux_add_cmakelists(${PATH})
# add source files and header file - header file are required for IAR project generation
mcux_add_source(
SOURCES
drv/nb2p4ghz/nxp2p4_xcvr.c
drv/nb2p4ghz/nxp2p4_xcvr.h
drv/nb2p4ghz/nxp_xcvr_trim.c
drv/nb2p4ghz/nxp_xcvr_trim.h
drv/rfmc_ctrl.c
drv/rfmc_ctrl.h
drv/nxp_xcvr_lcl_ctrl.c
drv/nxp_xcvr_lcl_ctrl.h
drv/nxp_xcvr_ext_ctrl.c
drv/nxp_xcvr_ext_ctrl.h
drv/dbg_ram_capture.c
drv/dbg_ram_capture.h
drv/dma_capture.c
drv/dma_capture.h
drv/mathfp.c
drv/mathfp.h
)
# add include path
mcux_add_include(
INCLUDES
drv/.
drv/nb2p4ghz/.
)
if(CONFIG_MCUX_COMPONENT_middleware.wireless.xcvr.kw45_k32w1_mcxw71)
# add sources and include path for families kw45_k32w1_mcxw71
mcux_add_source(
SOURCES
drv/nb2p4ghz/configs/gen45/*.c
drv/nb2p4ghz/configs/gen45/*.h
)
mcux_add_include(
INCLUDES
drv/nb2p4ghz/configs/gen45/.
)
endif()
if(CONFIG_MCUX_COMPONENT_middleware.wireless.xcvr.kw47_mcxw72)
# add sources and include path for families kw47_mcxw72
mcux_add_source(
SOURCES
drv/nb2p4ghz/configs/gen47/*.c
drv/nb2p4ghz/configs/gen47/*.h
drv/nxp_xcvr_lcl_step_mgr.c
drv/nxp_xcvr_lcl_step_mgr.h
drv/nxp_xcvr_lcl_step_structs.h
)
mcux_add_include(
INCLUDES
drv/nb2p4ghz/configs/gen47/.
)
endif()
endif()