File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 2121
2222namespace {
2323#if ENABLE_CHIP_SHELL && CHIP_CONFIG_ENABLE_ICD_SERVER
24+ #ifdef RTE_UULP_GPIO_1_PIN
2425bool 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()
9395void 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments