Skip to content

Commit d7df753

Browse files
authored
add zigbee libs (#204)
1 parent 01e4365 commit d7df753

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

Diff for: configs/pio_start.txt

+35
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,39 @@ FRAMEWORK_SDK_DIR = env.PioPlatform().get_package_dir(
3737

3838
board_config = env.BoardConfig()
3939

40+
flatten_cppdefines = env.Flatten(env['CPPDEFINES'])
41+
42+
#
43+
# zigbee libs
44+
#
45+
if "ZIGBEE_MODE_ZCZR" in flatten_cppdefines:
46+
env.Append(
47+
LIBS=[
48+
"-lesp_zb_api_zczr",
49+
"-lesp_zb_cli_command",
50+
"-lzboss_stack.zczr.trace",
51+
"-lzboss_stack.zczr",
52+
"-lzboss_port"
53+
]
54+
)
55+
if "ZIGBEE_MODE_ED" in flatten_cppdefines:
56+
env.Append(
57+
LIBS=[
58+
"-lesp_zb_api_ed",
59+
"-lesp_zb_cli_command",
60+
"-lzboss_stack.ed.trace",
61+
"-lzboss_stack.ed",
62+
"-lzboss_port"
63+
]
64+
)
65+
if "ZIGBEE_MODE_RCP" in flatten_cppdefines:
66+
env.Append(
67+
LIBS=[
68+
"-lesp_zb_api_rcp",
69+
"-lesp_zb_cli_command",
70+
"-lzboss_stack.rcp",
71+
"-lzboss_port"
72+
]
73+
)
74+
4075
env.Append(

0 commit comments

Comments
 (0)