Skip to content

Commit

Permalink
add thermostat to efr32 targets
Browse files Browse the repository at this point in the history
  • Loading branch information
mkardous-silabs committed Feb 18, 2023
1 parent 738205d commit 2c42452
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/build/build/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,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
7 changes: 7 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 Down

0 comments on commit 2c42452

Please sign in to comment.