Update Smoke CO Alarm Implementation (#27566)
* Smoke/CO: Add ExpiryDate
* Smoke/CO: Add emberAfHandleEventTrigger
* Smoke/CO: Update the handling of attribute changes
Unmute when critical alarm is triggered
* Smoke/CO: Update the handling of DeviceMuted
Cannot mute when critical alarms exist
* Smoke/CO: Update zap
* Smoke/CO: Update README.md
Add building options description
* Smoke/CO: Update zap
fix UnitTesting cluster
* Revert "Smoke/CO: Update zap"
This reverts commit 4607dab749967376cf23c8f5e0010344ecf8221c.
* Revert "Smoke/CO: Update zap"
This reverts commit 75344192fc40dd4255789a9b99ebbe1040139dc8.
* Add Unit Testing
* Smoke/CO: Update zap
Sync Silab changes
* Smoke/CO: Add ExpressedState priority
* Smoke/CO: Update endOfServiceAlert of zap
* [SMCO] Add mExpressedStatePriority
* [SMCO] Add timer for test
* Separate Warning and Critical Triggered Event
---------
Co-authored-by: Hare <renilr0@outlook.com>
diff --git a/examples/smoke-co-alarm-app/silabs/BUILD.gn b/examples/smoke-co-alarm-app/silabs/BUILD.gn
index c105d95..d4ebe73 100644
--- a/examples/smoke-co-alarm-app/silabs/BUILD.gn
+++ b/examples/smoke-co-alarm-app/silabs/BUILD.gn
@@ -49,6 +49,21 @@
chip_print_memory_usage = false
}
+if (slc_generate) {
+ # Generate Project Specific config (Board, hardware used etc..)
+ print(exec_script("${chip_root}/third_party/silabs/slc_gen/run_slc.py",
+ [
+ rebase_path(chip_root),
+ "${silabs_board}",
+ "${disable_lcd}",
+ "${use_wstk_buttons}",
+ "${use_wstk_leds}",
+ "${use_external_flash}",
+ "${silabs_mcu}",
+ ],
+ "list lines"))
+}
+
if (wifi_soc) {
siwx917_sdk("sdk") {
sources = [
@@ -115,6 +130,10 @@
include_dirs = [ "include" ]
defines = []
+ if (silabs_board == "BRD2704A") {
+ defines += [ "SL_STATUS_LED=0" ]
+ }
+
sources = [
"${examples_common_plat_dir}/main.cpp",
"src/AppTask.cpp",
@@ -122,10 +141,6 @@
"src/ZclCallbacks.cpp",
]
- if (chip_build_libshell) {
- sources += [ "src/EventHandlerLibShell.cpp" ]
- }
-
deps = [
":sdk",
app_data_model,