Skip to content

Commit de4f452

Browse files
authored
Update pio_start.txt
1 parent 7a6a32d commit de4f452

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

configs/pio_start.txt

+35
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,39 @@ FRAMEWORK_SDK_DIR = join(FRAMEWORK_DIR, "tools", "esp32-arduino-libs")
3535

3636
board_config = env.BoardConfig()
3737

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

0 commit comments

Comments
 (0)