Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Silabs] Add Thermostat example to efr32 targets #25178

Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/examples-efr32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ jobs:
"./scripts/build/build_examples.py \
--enable-flashbundle \
--target efr32-brd4187c-window-covering-additional_data_advertising \
--target efr32-brd4187c-switch-openthread_mtd-shell \
--target efr32-brd4187c-switch-sed-low-power-use_ot_coap_lib \
--target efr32-brd4187c-thermostat-openthread_mtd \
--target efr32-brd4187c-switch-sed-shell-use_ot_coap_lib \
--target efr32-brd4187c-unit-test \
--target efr32-brd4187c-light-use_ot_lib \
--target efr32-brd4187c-light-rpc \
Expand Down
2 changes: 2 additions & 0 deletions scripts/build/build/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ def BuildEfr32Target():
target.AppendFixedTargets([
TargetPart('brd4161a', board=Efr32Board.BRD4161A),
TargetPart('brd4187c', board=Efr32Board.BRD4187C),
TargetPart('brd4186c', board=Efr32Board.BRD4186C),
TargetPart('brd4163a', board=Efr32Board.BRD4163A),
TargetPart('brd4164a', board=Efr32Board.BRD4164A),
TargetPart('brd4166a', board=Efr32Board.BRD4166A),
Expand All @@ -208,6 +209,7 @@ def BuildEfr32Target():
TargetPart('unit-test', app=Efr32App.UNIT_TEST),
TargetPart('light', app=Efr32App.LIGHT),
TargetPart('lock', app=Efr32App.LOCK),
TargetPart('thermostat', app=Efr32App.THERMOSTAT)
])

target.AppendModifier('rpc', enable_rpcs=True)
Expand Down
10 changes: 10 additions & 0 deletions scripts/build/builders/efr32.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class Efr32App(Enum):
LOCK = auto()
SWITCH = auto()
WINDOW_COVERING = auto()
THERMOSTAT = auto()
UNIT_TEST = auto()

def ExampleName(self):
Expand All @@ -36,6 +37,8 @@ def ExampleName(self):
return 'light-switch-app'
elif self == Efr32App.WINDOW_COVERING:
return 'window-app'
elif self == Efr32App.THERMOSTAT:
return 'thermostat'
else:
raise Exception('Unknown app type: %r' % self)

Expand All @@ -48,6 +51,8 @@ def AppNamePrefix(self):
return 'chip-efr32-light-switch-example'
elif self == Efr32App.WINDOW_COVERING:
return 'chip-efr32-window-example'
elif self == Efr32App.THERMOSTAT:
return 'chip-efr32-thermostat-example'
elif self == Efr32App.UNIT_TEST:
return 'chip-efr32-device_tests'
else:
Expand All @@ -62,6 +67,8 @@ def FlashBundleName(self):
return 'light_switch_app.flashbundle.txt'
elif self == Efr32App.WINDOW_COVERING:
return 'window_app.flashbundle.txt'
elif self == Efr32App.THERMOSTAT:
return 'thermostat.flashbundle.txt'
elif self == Efr32App.UNIT_TEST:
return 'efr32_device_tests.flashbundle.txt'
else:
Expand All @@ -84,6 +91,7 @@ class Efr32Board(Enum):
BRD4187A = 7
BRD4304A = 8
BRD4187C = 9
BRD4186C = 10

def GnArgName(self):
if self == Efr32Board.BRD4161A:
Expand All @@ -102,6 +110,8 @@ def GnArgName(self):
return 'BRD4187A'
elif self == Efr32Board.BRD4304A:
return 'BRD4304A'
elif self == Efr32Board.BRD4186C:
return 'BRD4186C'
elif self == Efr32Board.BRD4187C:
return 'BRD4187C'
else:
Expand Down
2 changes: 1 addition & 1 deletion scripts/build/testdata/all_targets_linux_x64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ bouffalolab-{bl602-iot-matter-v1,bl602-iot-dvk-3s,bl602-night-light,xt-zb6-devki
cc13x2x7_26x2x7-{all-clusters,all-clusters-minimal,lock,pump,pump-controller,shell}[-ftd][-mtd]
cc32xx-lock
cyw30739-cyw930739m2evb_01-{light,lock,ota-requestor}[-no-progress-logging]
efr32-{brd4161a,brd4187c,brd4163a,brd4164a,brd4166a,brd4170a,brd4186a,brd4187a,brd4304a}-{window-covering,switch,unit-test,light,lock}[-rpc][-with-ota-requestor][-sed][-low-power][-shell][-no_logging][-openthread_mtd][-enable_heap_monitoring][-no_openthread_cli][-show_qr_code][-wifi][-rs911x][-wf200][-wifi_ipv4][-additional_data_advertising][-use_ot_lib][-use_ot_coap_lib][-no-version]
efr32-{brd4161a,brd4187c,brd4186c,brd4163a,brd4164a,brd4166a,brd4170a,brd4186a,brd4187a,brd4304a}-{window-covering,switch,unit-test,light,lock,thermostat}[-rpc][-with-ota-requestor][-sed][-low-power][-shell][-no_logging][-openthread_mtd][-enable_heap_monitoring][-no_openthread_cli][-show_qr_code][-wifi][-rs911x][-wf200][-wifi_ipv4][-additional_data_advertising][-use_ot_lib][-use_ot_coap_lib][-no-version]
esp32-{m5stack,c3devkit,devkitc,qemu}-{all-clusters,all-clusters-minimal,ota-provider,ota-requestor,shell,light,lock,bridge,temperature-measurement,ota-requestor,tests}[-rpc][-ipv6only]
genio-lighting-app
linux-fake-tests[-mbedtls][-boringssl][-asan][-tsan][-ubsan][-libfuzzer][-coverage][-dmalloc][-clang]
Expand Down