Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Rogger committed Aug 18, 2024
1 parent 927314d commit 6dd438d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 120 deletions.
97 changes: 0 additions & 97 deletions include/zb_mem_config_custom.h

This file was deleted.

14 changes: 0 additions & 14 deletions prj_debug.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ CONFIG_ZIGBEE_APP_UTILS_LOG_LEVEL_DBG=y
CONFIG_ZBOSS_TRACE_LOG_LEVEL_DBG=n
CONFIG_ZBOSS_OSIF_LOG_LEVEL_DBG=n


CONFIG_HEAP_MEM_POOL_SIZE=2048
CONFIG_MAIN_THREAD_PRIORITY=7

Expand Down Expand Up @@ -53,16 +52,3 @@ CONFIG_NET_IPV6=n
CONFIG_NET_IP_ADDR_CHECK=n

CONFIG_PM_DEVICE=y

# Thread Analyzer
#CONFIG_THREAD_ANALYZER=y
#CONFIG_THREAD_MONITOR=y
#CONFIG_THREAD_ANALYZER_AUTO=y
#CONFIG_THREAD_ANALYZER_AUTO_INTERVAL=10
#CONFIG_INIT_STACKS=y
#CONFIG_THREAD_STACK_INFO=y
#CONFIG_THREAD_NAME=y

# Enable core dump support
CONFIG_DEBUG_COREDUMP=y
CONFIG_DEBUG_COREDUMP_BACKEND_LOGGING=y
8 changes: 4 additions & 4 deletions prj_production.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ CONFIG_ZIGBEE_ROLE_END_DEVICE=y
CONFIG_ZIGBEE_CHANNEL_SELECTION_MODE_MULTI=y

# Sensor
CONFIG_SPI=n
CONFIG_PWM=n
CONFIG_ADC=y
CONFIG_I2C=y
CONFIG_SENSOR=y
CONFIG_SHTCX=y
CONFIG_SPI=n

CONFIG_ADC=y
CONFIG_PWM=n
CONFIG_SCD4X=y

# This example requires more workqueue stack
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
Expand Down
11 changes: 6 additions & 5 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,8 @@ int main(void)

// RX on when Idle and power_source are required for the ZigBee capability AC mains = False
// Turn off radio when sleeping https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/protocols/zigbee/configuring.html#sleepy-end-device-behavior
zigbee_configure_sleepy_behavior(true);
zb_set_rx_on_when_idle(ZB_FALSE);
LOG_INF("Enabled sleepy end device behavior.");

// https://developer.nordicsemi.com/nRF_Connect_SDK/doc/zboss/3.11.2.1/zigbee_prog_principles.html#zigbee_power_optimization_sleepy
zb_set_ed_timeout(ED_AGING_TIMEOUT_32MIN);
Expand All @@ -810,7 +811,9 @@ int main(void)
init_clusters_attr();

ZB_AF_SET_IDENTIFY_NOTIFICATION_HANDLER(SCHNEGGI_ENDPOINT, identify_cb);
zigbee_erase_persistent_storage(ZB_FALSE);

// Erase persistent storage
zb_set_nvram_erase_at_start(ZB_FALSE);

zigbee_enable();

Expand All @@ -822,9 +825,7 @@ int main(void)
}

/*
WDT
- WDT
- Measure power consumption
- README
Expand Down

0 comments on commit 6dd438d

Please sign in to comment.