Skip to content

Commit 0a2fda2

Browse files
[Silabs] Add Support for RGB led in Thread build (part 2) (project-chip#42153)
* Fixed build error, added matter_support pointer and enabled rgb led for brd2601B and BRD2608A boards * Removed comment * Restyled by gn --------- Co-authored-by: Restyled.io <[email protected]>
1 parent 2ae391b commit 0a2fda2

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/platform/silabs/platformAbstraction/GsdkSpam.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ extern "C" {
4141
#define SL_SIMPLE_LED_INSTANCE(x) (&sl_simple_rgb_pwm_led_rgb_led0)
4242
#define SL_SIMPLE_LED_COUNT 1
4343
#define SL_LED_INIT_INTANCES() sl_simple_rgb_pwm_led_init_instances();
44-
#define SL_LED_GET_STATE(x) (x->led_common.context->state)
44+
#define SL_LED_GET_STATE(x) sl_led_get_state(&(x->led_common))
4545
#define SL_LED_TURN_ON(x) sl_led_turn_on(&(x->led_common))
4646
#define SL_LED_TURN_OFF(x) sl_led_turn_off(&(x->led_common))
4747
#define SL_LED_TOGGLE(x) sl_led_toggle(&(x->led_common))

third_party/silabs/silabs_board.gni

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ if (is_si917_board) {
154154
silabs_family = "efr32mg24"
155155
silabs_mcu = "EFR32MG24B310F1536IM48"
156156

157-
# TODO enable me once submodule is updated
158-
# sl_enable_rgb_led = true
157+
sl_enable_rgb_led = true
158+
159159
# ThunderBoards don't have a LCD,
160160
show_qr_code = false
161161
disable_lcd = true
@@ -231,6 +231,7 @@ if (is_si917_board) {
231231
# ThunderBoards don't have a LCD,
232232
show_qr_code = false
233233
disable_lcd = true
234+
sl_enable_rgb_led = true
234235

235236
# Custom Board ----------
236237
} else if (silabs_board == "CUSTOM") {

0 commit comments

Comments
 (0)