Trident IoT Zigbee SDK
 
Loading...
Searching...
No Matches
tr_plugin_config.h
Go to the documentation of this file.
1
10#ifndef TR_PLUGIN_CONFIG_H
11#define TR_PLUGIN_CONFIG_H
12
13#include <stdio.h>
14
15#ifdef TR_CLI_PROMPT
16#undef TR_CLI_PROMPT
17#endif
18#define TR_CLI_PROMPT "switch> "
19
20#ifdef TR_CLI_MAX_PROMPT_LEN
21#undef TR_CLI_MAX_PROMPT_LEN
22#endif
23#define TR_CLI_MAX_PROMPT_LEN sizeof(TR_CLI_PROMPT)
24
25// Plugin CLI Configs
26#define TR_IDENTIFY_CLIENT_CLI_ENABLE
27#define TR_ON_OFF_CLIENT_CLI_ENABLE
28
29// Debug print user configuration
30#ifndef TR_TEST_BUILD
31#define TR_DEBUG_PRINT_COLOR_ENABLED
32#endif
33
34#define TR_DEBUG_PRINT_STACK_ENABLED
35#define TR_DEBUG_PRINT_CORE_ENABLED
36#define TR_DEBUG_PRINT_APP_ENABLED
37#define TR_DEBUG_PRINT_ZCL_ENABLED
38#define TR_DEBUG_PRINT_RX_MSGS_ENABLED
39
40// Debug print color configuration
41#ifdef TR_DEBUG_PRINT_COLOR_ENABLED
42#define TR_DEBUG_PRINT_STACK_COLOR DEBUG_BLUE
43#define TR_DEBUG_PRINT_CORE_COLOR DEBUG_DEFAULT
44#define TR_DEBUG_PRINT_APP_COLOR DEBUG_MAGENTA
45#define TR_DEBUG_PRINT_ZCL_COLOR DEBUG_GREEN
46#define TR_DEBUG_PRINT_RX_MSGS_COLOR DEBUG_YELLOW
47#endif
48
49// Plugin Enable Configs
50#define TR_NETWORK_REJOIN_PLUGIN_ENABLE
51#define TR_BASIC_SERVER_PLUGIN_ENABLE
52#define TR_IDENTIFY_CLIENT_PLUGIN_ENABLE
53#define TR_IDENTIFY_SERVER_PLUGIN_ENABLE
54#define TR_ON_OFF_CLIENT_PLUGIN_ENABLE
55#define TR_ON_OFF_SWITCH_CONFIGURATION_SERVER_PLUGIN_ENABLE
56#define TR_POLL_CONTROL_SERVER_PLUGIN_ENABLE
57#define TR_REMOTE_CLI_SERVER_PLUGIN_ENABLE
58
59// Plugin Print Configs
60#define TR_NETWORK_REJOIN_PLUGIN_PRINT_ENABLE 1
61#define TR_BASIC_SERVER_PLUGIN_PRINT_ENABLE 1
62#define TR_IDENTIFY_CLIENT_PLUGIN_PRINT_ENABLE 1
63#define TR_IDENTIFY_SERVER_PLUGIN_PRINT_ENABLE 1
64#define TR_ON_OFF_CLIENT_PLUGIN_PRINT_ENABLE 1
65#define TR_ON_OFF_SWITCH_CONFIGURATION_SERVER_PLUGIN_PRINT_ENABLE 1
66#define TR_POLL_CONTROL_SERVER_PLUGIN_PRINT_ENABLE 1
67#define TR_REMOTE_CLI_SERVER_PLUGIN_PRINT_ENABLE 1
68
69// Channel Mask Configs
70#define TR_PRIMARY_CHANNEL_MASK 0x02108800
71#define TR_SECONDARY_CHANNEL_MASK 0x05EF7000
72
73// End-Device Keepalive Configs
74#define TR_ED_AGING_TIMEOUT ED_AGING_TIMEOUT_64MIN
75#define TR_KEEPALIVE_INTERVAL_MS 300000
76#define TR_KEEPALIVE_METHOD BOTH_KEEPALIVE_METHODS
77
78// Network Rejoin Plugin Configs
79#define TR_NWK_REJOIN_DELAY_MULTIPLIER 2
80#define TR_NWK_REJOIN_INITIAL_DELAY_SEC 1
81#define TR_NWK_REJOIN_MAX_DELAY_SEC 900
82
83// Sleep Plugin Configs
84#define TR_IS_SLEEPY_ZED
85#define TR_STAY_AWAKE_WHEN_NOT_JOINED
86
87#endif /* TR_PLUGIN_CONFIG_H */