Skip to content

Commit e6014d5

Browse files
[SL-UP] Added #ifdef for RTE_UULP_GPIO_1_PIN macro for wifi sdk v3.5.2-fc integration failure (#528)
1 parent 190a8f6 commit e6014d5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/platform/silabs/SiWx917/SiWxPlatformInterface.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121

2222
namespace {
2323
#if ENABLE_CHIP_SHELL && CHIP_CONFIG_ENABLE_ICD_SERVER
24+
#ifdef RTE_UULP_GPIO_1_PIN
2425
bool ps_requirement_added = false;
26+
#endif // RTE_UULP_GPIO_1_PIN
2527
#endif // ENABLE_CHIP_SHELL && CHIP_CONFIG_ENABLE_ICD_SERVER
2628
} // namespace
2729

@@ -93,6 +95,7 @@ inline void sl_si91x_btn_event_handler()
9395
void sl_si91x_uart_power_requirement_handler()
9496
{
9597
#ifdef ENABLE_CHIP_SHELL
98+
#ifdef RTE_UULP_GPIO_1_PIN
9699
// Checking the UULP PIN 1 status to reinit the UART and not allow the device to go to sleep
97100
if (sl_si91x_gpio_get_uulp_npss_pin(RTE_UULP_GPIO_1_PIN))
98101
{
@@ -110,6 +113,7 @@ void sl_si91x_uart_power_requirement_handler()
110113
ps_requirement_added = false;
111114
}
112115
}
116+
#endif // RTE_UULP_GPIO_1_PIN
113117
#endif // ENABLE_CHIP_SHELL
114118
}
115119

src/platform/silabs/wifi/SiWx/WifiInterface.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ sl_status_t sl_wifi_siwx917_init(void)
224224

225225
#if CHIP_CONFIG_ENABLE_ICD_SERVER
226226
#ifdef ENABLE_CHIP_SHELL
227+
#ifdef RTE_UULP_GPIO_1_PIN
227228
// While using the matter shell with a Low Power Build, GPIO 1 is used to check the UULP PIN 1 status
228229
// since UART doesn't act as a wakeup source in the UULP mode.
229230

@@ -235,6 +236,7 @@ sl_status_t sl_wifi_siwx917_init(void)
235236

236237
// Enable the REN
237238
RSI_NPSSGPIO_InputBufferEn(RTE_UULP_GPIO_1_PIN, 1);
239+
#endif // RTE_UULP_GPIO_1_PIN
238240
#endif // ENABLE_CHIP_SHELL
239241
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER
240242
#endif // SLI_SI91X_MCU_INTERFACE

0 commit comments

Comments
 (0)