From b67b0bd1e3dbe7b0095630e183fc42c50cebf3e2 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Wed, 26 Jun 2024 05:34:09 +0000 Subject: [PATCH] Restyled by clang-format --- .../BRD4338A/autogen/sl_event_handler.c | 44 ++--- .../autogen/sl_si91x_power_manager_handler.c | 138 +++++++------- .../autogen/sl_si91x_power_manager_init.h | 63 ++++--- .../sl_si91x_power_manager_wakeup_handler.c | 63 ++++--- .../sl_si91x_power_manager_wakeup_handler.h | 63 +++---- .../config/sl_si91x_power_manager_config_3.h | 170 +++++++++--------- ...si91x_power_manager_wakeup_source_config.h | 56 +++--- 7 files changed, 285 insertions(+), 312 deletions(-) diff --git a/matter/si91x/siwx917/BRD4338A/autogen/sl_event_handler.c b/matter/si91x/siwx917/BRD4338A/autogen/sl_event_handler.c index 6743883e23..9577206749 100644 --- a/matter/si91x/siwx917/BRD4338A/autogen/sl_event_handler.c +++ b/matter/si91x/siwx917/BRD4338A/autogen/sl_event_handler.c @@ -1,26 +1,25 @@ #include "sl_event_handler.h" -#include "system_si91x.h" -#include "rsi_nvic_priorities_config.h" -#include "sli_siwx917_soc.h" #include "rsi_board.h" #include "rsi_debug.h" +#include "rsi_nvic_priorities_config.h" +#include "sli_siwx917_soc.h" +#include "system_si91x.h" #if SL_ICD_ENABLED -#include "sl_si91x_power_manager.h" #include "rsi_wisemcu_hardware_setup.h" +#include "sl_si91x_power_manager.h" #include "sl_si91x_power_manager_init.h" #endif // SL_ICD_ENABLED #include "SEGGER_RTT.h" -#include "sl_sleeptimer.h" +#include "cmsis_os2.h" +#include "sl_iostream_init_instances.h" +#include "sl_iostream_rtt.h" #include "sl_si91x_button_instances.h" #include "sl_si91x_led_instances.h" +#include "sl_sleeptimer.h" #include "sl_ulp_timer_instances.h" -#include "sl_iostream_rtt.h" -#include "cmsis_os2.h" -#include "sl_iostream_init_instances.h" -void sl_platform_init(void) -{ +void sl_platform_init(void) { SystemCoreClockUpdate(); sl_si91x_device_init_nvic(); sli_si91x_platform_init(); @@ -32,19 +31,14 @@ void sl_platform_init(void) osKernelInitialize(); } -void sl_kernel_start(void) -{ - osKernelStart(); -} +void sl_kernel_start(void) { osKernelStart(); } -void sl_driver_init(void) -{ +void sl_driver_init(void) { button_init_instances(); led_init_instances(); } -void sl_service_init(void) -{ +void sl_service_init(void) { #if SL_ICD_ENABLED sl_si91x_power_manager_init(); sli_si91x_power_manager_configure_ram_and_peripheral(); @@ -55,16 +49,8 @@ void sl_service_init(void) sl_iostream_init_instances(); } -void sl_stack_init(void) -{ -} +void sl_stack_init(void) {} -void sl_internal_app_init(void) -{ -} - -void sl_iostream_init_instances(void) -{ - sl_iostream_rtt_init(); -} +void sl_internal_app_init(void) {} +void sl_iostream_init_instances(void) { sl_iostream_rtt_init(); } diff --git a/matter/si91x/siwx917/BRD4338A/autogen/sl_si91x_power_manager_handler.c b/matter/si91x/siwx917/BRD4338A/autogen/sl_si91x_power_manager_handler.c index e26c9935ce..42d0e80631 100644 --- a/matter/si91x/siwx917/BRD4338A/autogen/sl_si91x_power_manager_handler.c +++ b/matter/si91x/siwx917/BRD4338A/autogen/sl_si91x_power_manager_handler.c @@ -1,85 +1,79 @@ -/***************************************************************************//** - * @file sl_si91x_power_manager_handler.c.jinja - * @brief Power Manager Service Handler - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * SPDX-License-Identifier: Zlib - * - * The licensor of this software is Silicon Laboratories Inc. - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event will the authors be held liable for any damages - * arising from the use of this software. - * - * Permission is granted to anyone to use this software for any purpose, - * including commercial applications, and to alter it and redistribute it - * freely, subject to the following restrictions: - * - * 1. The origin of this software must not be misrepresented; you must not - * claim that you wrote the original software. If you use this software - * in a product, an acknowledgment in the product documentation would be - * appreciated but is not required. - * 2. Altered source versions must be plainly marked as such, and must not be - * misrepresented as being the original software. - * 3. This notice may not be removed or altered from any source distribution. - * - ******************************************************************************/ +/***************************************************************************/ /** + * @file sl_si91x_power_manager_handler.c.jinja + * @brief Power Manager Service Handler + ******************************************************************************* + * # License + * Copyright 2023 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * SPDX-License-Identifier: Zlib + * + * The licensor of this software is Silicon Laboratories Inc. + * + * This software is provided 'as-is', without any express or implied + * warranty. In no event will the authors be held liable for any damages + * arising from the use of this software. + * + * Permission is granted to anyone to use this software for any purpose, + * including commercial applications, and to alter it and redistribute it + * freely, subject to the following restrictions: + * + * 1. The origin of this software must not be misrepresented; you must not + * claim that you wrote the original software. If you use this software + * in a product, an acknowledgment in the product documentation would be + * appreciated but is not required. + * 2. Altered source versions must be plainly marked as such, and must not be + * misrepresented as being the original software. + * 3. This notice may not be removed or altered from any source distribution. + * + ******************************************************************************/ #include "sl_si91x_power_manager.h" -/***************************************************************************//** - * Check if the MCU can sleep at that time. This function is called when the system - * is about to go sleeping, with the interrupts disabled. It allows the software to - * cancel going to sleep in case of a last-minute event occurred (window between the - * function call and interrupt disable). - * - * @return True, if the system can go to sleep. - * False, otherwise. - * - * @note This function is called with the interrupt disabled and it MUST NOT be - * re-enabled. - ******************************************************************************/ -__WEAK boolean_t app_is_ok_to_sleep(void) -{ - return true; -} +/***************************************************************************/ /** + * Check if the MCU can sleep at that time. This function is called when the system + * is about to go sleeping, with the interrupts disabled. It allows the software to + * cancel going to sleep in case of a last-minute event occurred (window between the + * function call and interrupt disable). + * + * @return True, if the system can go to sleep. + * False, otherwise. + * + * @note This function is called with the interrupt disabled and it MUST NOT be + * re-enabled. + ******************************************************************************/ +__WEAK boolean_t app_is_ok_to_sleep(void) { return true; } -/***************************************************************************//** - * Check if the MCU can sleep after an interrupt. This function is called after an - * interrupt occured and was processed. It allows the power manger to know if it must - * go back to sleep or wakeup. - * - * @return SL_SI91X_POWER_MANAGER_IGNORE, if the module did not trigger an ISR and it - * won't to contribute to the decision. - * - * SL_SI91X_POWER_MANAGER_SLEEP, The module was the one that caused the system - * wakeup and the system SHOULD go back to sleep. - * - * SL_SI91X_POWER_MANAGER_WAKEUP, The module was the one that caused the system - * wakeup and the system MUST NOT go back to sleep. - * - * @note This function must not have any side effects. It is not guaranteed to be - * called for every ISR. If a prior hook function requires to wakeup, such - * as a wireless stack, the application hook function won't be called. - ******************************************************************************/ -__WEAK sl_si91x_power_manager_on_isr_exit_t app_sleep_on_isr_exit(void) -{ +/***************************************************************************/ /** + * Check if the MCU can sleep after an interrupt. This function is called after an + * interrupt occured and was processed. It allows the power manger to know if it must + * go back to sleep or wakeup. + * + * @return SL_SI91X_POWER_MANAGER_IGNORE, if the module did not trigger an ISR and it + * won't to contribute to the decision. + * + * SL_SI91X_POWER_MANAGER_SLEEP, The module was the one that caused the system + * wakeup and the system SHOULD go back to sleep. + * + * SL_SI91X_POWER_MANAGER_WAKEUP, The module was the one that caused the system + * wakeup and the system MUST NOT go back to sleep. + * + * @note This function must not have any side effects. It is not guaranteed to be + * called for every ISR. If a prior hook function requires to wakeup, such + * as a wireless stack, the application hook function won't be called. + ******************************************************************************/ +__WEAK sl_si91x_power_manager_on_isr_exit_t app_sleep_on_isr_exit(void) { return SL_SI91X_POWER_MANAGER_ISR_IGNORE; } -/***************************************************************************//** - * Mandatory callback that must validate if the MCU can sleep after having - * processed an interrupt when the system was sleeping. - ******************************************************************************/ -boolean_t sl_si91x_power_manager_sleep_on_isr_exit(void) -{ +/***************************************************************************/ /** + * Mandatory callback that must validate if the MCU can sleep after having + * processed an interrupt when the system was sleeping. + ******************************************************************************/ +boolean_t sl_si91x_power_manager_sleep_on_isr_exit(void) { sl_si91x_power_manager_on_isr_exit_t answer; boolean_t sleep = false; boolean_t force_wakeup = false; - // Application hook answer = app_sleep_on_isr_exit(); if (answer == SL_SI91X_POWER_MANAGER_ISR_WAKEUP) { diff --git a/matter/si91x/siwx917/BRD4338A/autogen/sl_si91x_power_manager_init.h b/matter/si91x/siwx917/BRD4338A/autogen/sl_si91x_power_manager_init.h index b4df03354d..cbe0def47b 100644 --- a/matter/si91x/siwx917/BRD4338A/autogen/sl_si91x_power_manager_init.h +++ b/matter/si91x/siwx917/BRD4338A/autogen/sl_si91x_power_manager_init.h @@ -1,32 +1,32 @@ -/***************************************************************************//** - * @file sl_si91x_power_manager_init.h.jinja - * @brief Power Manager Service Initialization - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * SPDX-License-Identifier: Zlib - * - * The licensor of this software is Silicon Laboratories Inc. - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event will the authors be held liable for any damages - * arising from the use of this software. - * - * Permission is granted to anyone to use this software for any purpose, - * including commercial applications, and to alter it and redistribute it - * freely, subject to the following restrictions: - * - * 1. The origin of this software must not be misrepresented; you must not - * claim that you wrote the original software. If you use this software - * in a product, an acknowledgment in the product documentation would be - * appreciated but is not required. - * 2. Altered source versions must be plainly marked as such, and must not be - * misrepresented as being the original software. - * 3. This notice may not be removed or altered from any source distribution. - * - ******************************************************************************/ +/***************************************************************************/ /** + * @file sl_si91x_power_manager_init.h.jinja + * @brief Power Manager Service Initialization + ******************************************************************************* + * # License + * Copyright 2023 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * SPDX-License-Identifier: Zlib + * + * The licensor of this software is Silicon Laboratories Inc. + * + * This software is provided 'as-is', without any express or implied + * warranty. In no event will the authors be held liable for any damages + * arising from the use of this software. + * + * Permission is granted to anyone to use this software for any purpose, + * including commercial applications, and to alter it and redistribute it + * freely, subject to the following restrictions: + * + * 1. The origin of this software must not be misrepresented; you must not + * claim that you wrote the original software. If you use this software + * in a product, an acknowledgment in the product documentation would be + * appreciated but is not required. + * 2. Altered source versions must be plainly marked as such, and must not be + * misrepresented as being the original software. + * 3. This notice may not be removed or altered from any source distribution. + * + ******************************************************************************/ #ifndef SL_SI91X_POWER_MANAGER_INIT_H #define SL_SI91X_POWER_MANAGER_INIT_H @@ -37,9 +37,8 @@ extern "C" { #include "sl_si91x_power_manager_config_3.h" - -__STATIC_INLINE void sli_si91x_power_manager_configure_ram_and_peripheral(void) -{ +__STATIC_INLINE void +sli_si91x_power_manager_configure_ram_and_peripheral(void) { sl_si91x_power_manager_remove_peripheral_requirement(&peripheral_config); sl_si91x_power_manager_configure_ram_retention(&ram_configuration); } diff --git a/matter/si91x/siwx917/BRD4338A/autogen/sl_si91x_power_manager_wakeup_handler.c b/matter/si91x/siwx917/BRD4338A/autogen/sl_si91x_power_manager_wakeup_handler.c index 9f4e51a23f..82dc48fb51 100644 --- a/matter/si91x/siwx917/BRD4338A/autogen/sl_si91x_power_manager_wakeup_handler.c +++ b/matter/si91x/siwx917/BRD4338A/autogen/sl_si91x_power_manager_wakeup_handler.c @@ -1,37 +1,36 @@ -/***************************************************************************//** - * @file sl_si91x_power_manager_wakeup_handler.c.jinja - * @brief Power Manager Service Wakeup Handler APIs - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * SPDX-License-Identifier: Zlib - * - * The licensor of this software is Silicon Laboratories Inc. - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event will the authors be held liable for any damages - * arising from the use of this software. - * - * Permission is granted to anyone to use this software for any purpose, - * including commercial applications, and to alter it and redistribute it - * freely, subject to the following restrictions: - * - * 1. The origin of this software must not be misrepresented; you must not - * claim that you wrote the original software. If you use this software - * in a product, an acknowledgment in the product documentation would be - * appreciated but is not required. - * 2. Altered source versions must be plainly marked as such, and must not be - * misrepresented as being the original software. - * 3. This notice may not be removed or altered from any source distribution. - * - ******************************************************************************/ +/***************************************************************************/ /** + * @file sl_si91x_power_manager_wakeup_handler.c.jinja + * @brief Power Manager Service Wakeup Handler APIs + ******************************************************************************* + * # License + * Copyright 2023 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * SPDX-License-Identifier: Zlib + * + * The licensor of this software is Silicon Laboratories Inc. + * + * This software is provided 'as-is', without any express or implied + * warranty. In no event will the authors be held liable for any damages + * arising from the use of this software. + * + * Permission is granted to anyone to use this software for any purpose, + * including commercial applications, and to alter it and redistribute it + * freely, subject to the following restrictions: + * + * 1. The origin of this software must not be misrepresented; you must not + * claim that you wrote the original software. If you use this software + * in a product, an acknowledgment in the product documentation would be + * appreciated but is not required. + * 2. Altered source versions must be plainly marked as such, and must not be + * misrepresented as being the original software. + * 3. This notice may not be removed or altered from any source distribution. + * + ******************************************************************************/ #include "sl_si91x_power_manager_wakeup_handler.h" -sl_status_t sl_si91x_power_manager_wakeup_init(void) -{ - sl_status_t status=SL_STATUS_OK; +sl_status_t sl_si91x_power_manager_wakeup_init(void) { + sl_status_t status = SL_STATUS_OK; return status; } diff --git a/matter/si91x/siwx917/BRD4338A/autogen/sl_si91x_power_manager_wakeup_handler.h b/matter/si91x/siwx917/BRD4338A/autogen/sl_si91x_power_manager_wakeup_handler.h index 32384cbd83..c211d05f56 100644 --- a/matter/si91x/siwx917/BRD4338A/autogen/sl_si91x_power_manager_wakeup_handler.h +++ b/matter/si91x/siwx917/BRD4338A/autogen/sl_si91x_power_manager_wakeup_handler.h @@ -1,44 +1,39 @@ -/***************************************************************************//** - * @file sl_si91x_power_manager_wakeup_handler.h.jinja - * @brief Power Manager Service Wakeup Handler APIs - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * SPDX-License-Identifier: Zlib - * - * The licensor of this software is Silicon Laboratories Inc. - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event will the authors be held liable for any damages - * arising from the use of this software. - * - * Permission is granted to anyone to use this software for any purpose, - * including commercial applications, and to alter it and redistribute it - * freely, subject to the following restrictions: - * - * 1. The origin of this software must not be misrepresented; you must not - * claim that you wrote the original software. If you use this software - * in a product, an acknowledgment in the product documentation would be - * appreciated but is not required. - * 2. Altered source versions must be plainly marked as such, and must not be - * misrepresented as being the original software. - * 3. This notice may not be removed or altered from any source distribution. - * - ******************************************************************************/ +/***************************************************************************/ /** + * @file sl_si91x_power_manager_wakeup_handler.h.jinja + * @brief Power Manager Service Wakeup Handler APIs + ******************************************************************************* + * # License + * Copyright 2023 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * SPDX-License-Identifier: Zlib + * + * The licensor of this software is Silicon Laboratories Inc. + * + * This software is provided 'as-is', without any express or implied + * warranty. In no event will the authors be held liable for any damages + * arising from the use of this software. + * + * Permission is granted to anyone to use this software for any purpose, + * including commercial applications, and to alter it and redistribute it + * freely, subject to the following restrictions: + * + * 1. The origin of this software must not be misrepresented; you must not + * claim that you wrote the original software. If you use this software + * in a product, an acknowledgment in the product documentation would be + * appreciated but is not required. + * 2. Altered source versions must be plainly marked as such, and must not be + * misrepresented as being the original software. + * 3. This notice may not be removed or altered from any source distribution. + * + ******************************************************************************/ #ifndef SL_SI91X_POWER_MANAGER_WAKEUP_HANDLER_H #define SL_SI91X_POWER_MANAGER_WAKEUP_HANDLER_H #include "sl_status.h" - - #include "sl_si91x_power_manager_wakeup_source_config.h" - sl_status_t sl_si91x_power_manager_wakeup_init(void); - - #endif // SL_SI91X_POWER_MANAGER_WAKEUP_HANDLER_H diff --git a/matter/si91x/siwx917/BRD4338A/config/sl_si91x_power_manager_config_3.h b/matter/si91x/siwx917/BRD4338A/config/sl_si91x_power_manager_config_3.h index 3becf17434..ad2d4a5d57 100644 --- a/matter/si91x/siwx917/BRD4338A/config/sl_si91x_power_manager_config_3.h +++ b/matter/si91x/siwx917/BRD4338A/config/sl_si91x_power_manager_config_3.h @@ -1,32 +1,32 @@ /***************************************************************************/ /** - * @file sl_si91x_power_manager_config_3.h - * @brief Power Manager Configuration NWP Basic and MCU Advance RAM Configuration - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * SPDX-License-Identifier: Zlib - * - * The licensor of this software is Silicon Laboratories Inc. - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event will the authors be held liable for any damages - * arising from the use of this software. - * - * Permission is granted to anyone to use this software for any purpose, - * including commercial applications, and to alter it and redistribute it - * freely, subject to the following restrictions: - * - * 1. The origin of this software must not be misrepresented; you must not - * claim that you wrote the original software. If you use this software - * in a product, an acknowledgment in the product documentation would be - * appreciated but is not required. - * 2. Altered source versions must be plainly marked as such, and must not be - * misrepresented as being the original software. - * 3. This notice may not be removed or altered from any source distribution. - * - ******************************************************************************/ + * @file sl_si91x_power_manager_config_3.h + * @brief Power Manager Configuration NWP Basic and MCU Advance RAM Configuration + ******************************************************************************* + * # License + * Copyright 2023 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * SPDX-License-Identifier: Zlib + * + * The licensor of this software is Silicon Laboratories Inc. + * + * This software is provided 'as-is', without any express or implied + * warranty. In no event will the authors be held liable for any damages + * arising from the use of this software. + * + * Permission is granted to anyone to use this software for any purpose, + * including commercial applications, and to alter it and redistribute it + * freely, subject to the following restrictions: + * + * 1. The origin of this software must not be misrepresented; you must not + * claim that you wrote the original software. If you use this software + * in a product, an acknowledgment in the product documentation would be + * appreciated but is not required. + * 2. Altered source versions must be plainly marked as such, and must not be + * misrepresented as being the original software. + * 3. This notice may not be removed or altered from any source distribution. + * + ******************************************************************************/ #ifndef SL_SI91X_POWER_MANAGER_CONFIG_3_H #define SL_SI91X_POWER_MANAGER_CONFIG_3_H @@ -138,15 +138,15 @@ extern "C" { // Configure RAM Banks using Size #define SL_RAM_RETENTION_USING_SIZE 1 -#define SL_LP_RAM_RETENTION_USING_SIZE_BANK_1 4 -#define SL_LP_RAM_RETENTION_USING_SIZE_BANK_2 8 -#define SL_LP_RAM_RETENTION_USING_SIZE_BANK_3 12 -#define SL_LP_RAM_RETENTION_USING_SIZE_BANK_4 16 -#define SL_LP_RAM_RETENTION_USING_SIZE_BANK_5 32 -#define SL_LP_RAM_RETENTION_USING_SIZE_BANK_6 64 -#define SL_LP_RAM_RETENTION_USING_SIZE_BANK_7 128 -#define SL_LP_RAM_RETENTION_USING_SIZE_BANK_8 192 -#define SL_LP_RAM_RETENTION_USING_SIZE_BANK_9 256 +#define SL_LP_RAM_RETENTION_USING_SIZE_BANK_1 4 +#define SL_LP_RAM_RETENTION_USING_SIZE_BANK_2 8 +#define SL_LP_RAM_RETENTION_USING_SIZE_BANK_3 12 +#define SL_LP_RAM_RETENTION_USING_SIZE_BANK_4 16 +#define SL_LP_RAM_RETENTION_USING_SIZE_BANK_5 32 +#define SL_LP_RAM_RETENTION_USING_SIZE_BANK_6 64 +#define SL_LP_RAM_RETENTION_USING_SIZE_BANK_7 128 +#define SL_LP_RAM_RETENTION_USING_SIZE_BANK_8 192 +#define SL_LP_RAM_RETENTION_USING_SIZE_BANK_9 256 #define SL_LP_RAM_RETENTION_USING_SIZE_BANK_10 320 // Low Power Ram Retention Size (in KB) // 4 KB @@ -227,127 +227,127 @@ extern "C" { // <<< end of configuration section >>> sl_power_peripheral_t peripheral_config = { - .m4ss_peripheral = (0 + .m4ss_peripheral = (0 #if (SL_HP_M4_DEBUG_PERIPHERAL == 0) - | SL_SI91X_POWER_MANAGER_M4SS_PG_M4_DEBUG + | SL_SI91X_POWER_MANAGER_M4SS_PG_M4_DEBUG #endif #if (SL_HP_RPDMA_PERIPHERAL == 0) - | SL_SI91X_POWER_MANAGER_M4SS_PG_RPDMA + | SL_SI91X_POWER_MANAGER_M4SS_PG_RPDMA #endif #if (SL_HP_QSPI_PERIPHERAL == 0) - | SL_SI91X_POWER_MANAGER_M4SS_PG_QSPI + | SL_SI91X_POWER_MANAGER_M4SS_PG_QSPI #endif #if (SL_HP_SDIO_SPI_PERIPHERAL == 0) - | SL_SI91X_POWER_MANAGER_M4SS_PG_SDIO_SPI + | SL_SI91X_POWER_MANAGER_M4SS_PG_SDIO_SPI #endif - ), - .ulpss_peripheral = (0 + ), + .ulpss_peripheral = (0 #if (SL_ULP_AUX_PERIPHERAL == 0) - | SL_SI91X_POWER_MANAGER_ULPSS_PG_AUX + | SL_SI91X_POWER_MANAGER_ULPSS_PG_AUX #endif #if (SL_ULP_CAP_PERIPHERAL == 0) - | SL_SI91X_POWER_MANAGER_ULPSS_PG_CAP + | SL_SI91X_POWER_MANAGER_ULPSS_PG_CAP #endif #if (SL_ULP_FIM_PERIPHERAL == 0) - | SL_SI91X_POWER_MANAGER_ULPSS_PG_FIM + | SL_SI91X_POWER_MANAGER_ULPSS_PG_FIM #endif #if (SL_ULP_I2C_PERIPHERAL == 0) - | SL_SI91X_POWER_MANAGER_ULPSS_PG_I2C + | SL_SI91X_POWER_MANAGER_ULPSS_PG_I2C #endif #if (SL_ULP_I2S_PERIPHERAL == 0) - | SL_SI91X_POWER_MANAGER_ULPSS_PG_I2S + | SL_SI91X_POWER_MANAGER_ULPSS_PG_I2S #endif #if (SL_ULP_IR_PERIPHERAL == 0) - | SL_SI91X_POWER_MANAGER_ULPSS_PG_IR + | SL_SI91X_POWER_MANAGER_ULPSS_PG_IR #endif #if (SL_ULP_SSI_PERIPHERAL == 0) - | SL_SI91X_POWER_MANAGER_ULPSS_PG_SSI + | SL_SI91X_POWER_MANAGER_ULPSS_PG_SSI #endif #if (SL_ULP_UART_PERIPHERAL == 0) - | SL_SI91X_POWER_MANAGER_ULPSS_PG_UART + | SL_SI91X_POWER_MANAGER_ULPSS_PG_UART #endif #if (SL_ULP_UDMA_PERIPHERAL == 0) - | SL_SI91X_POWER_MANAGER_ULPSS_PG_UDMA + | SL_SI91X_POWER_MANAGER_ULPSS_PG_UDMA #endif - ), - .npss_peripheral = (0 + ), + .npss_peripheral = (0 #if (SL_UULP_MCU_STORE1_PERIPHERAL == 0) - | SL_SI91X_POWER_MANAGER_NPSS_PG_MCUSTORE1 + | SL_SI91X_POWER_MANAGER_NPSS_PG_MCUSTORE1 #endif #if (SL_UULP_MCU_STORE2_PERIPHERAL == 0) - | SL_SI91X_POWER_MANAGER_NPSS_PG_MCUSTORE2 + | SL_SI91X_POWER_MANAGER_NPSS_PG_MCUSTORE2 #endif #if (SL_UULP_MCU_STORE3_PERIPHERAL == 0) - | SL_SI91X_POWER_MANAGER_NPSS_PG_MCUSTORE3 + | SL_SI91X_POWER_MANAGER_NPSS_PG_MCUSTORE3 #endif #if (SL_UULP_RTC_PERIPHERAL == 0) - | SL_SI91X_POWER_MANAGER_NPSS_PG_MCURTC + | SL_SI91X_POWER_MANAGER_NPSS_PG_MCURTC #endif #if (SL_UULP_TIME_PERIOD_PERIPHERAL == 0) - | SL_SI91X_POWER_MANAGER_NPSS_PG_TIMEPERIOD + | SL_SI91X_POWER_MANAGER_NPSS_PG_TIMEPERIOD #endif #if (SL_UULP_UPS_PERIPHERAL == 0) - | SL_SI91X_POWER_MANAGER_NPSS_PG_MCUPS + | SL_SI91X_POWER_MANAGER_NPSS_PG_MCUPS #endif #if (SL_UULP_UTS_PERIPHERAL == 0) - | SL_SI91X_POWER_MANAGER_NPSS_PG_MCUTS + | SL_SI91X_POWER_MANAGER_NPSS_PG_MCUTS #endif #if (SL_UULP_WDT_PERIPHERAL == 0) - | SL_SI91X_POWER_MANAGER_NPSS_PG_MCUWDT + | SL_SI91X_POWER_MANAGER_NPSS_PG_MCUWDT #endif - ), + ), }; sl_power_ram_retention_config_t ram_configuration = { #if (SL_RAM_RETENTION_USING_SIZE == 1) - .configure_ram_banks = false, - .m4ss_ram_size_kb = SL_LP_RAM_RETENTION_SIZE, - .ulpss_ram_size_kb = SL_ULP_RAM_RETENTION_SIZE, + .configure_ram_banks = false, + .m4ss_ram_size_kb = SL_LP_RAM_RETENTION_SIZE, + .ulpss_ram_size_kb = SL_ULP_RAM_RETENTION_SIZE, #else - .configure_ram_banks = true, - .m4ss_ram_banks = (0 + .configure_ram_banks = true, + .m4ss_ram_banks = (0 #if (SL_LP_RAM_BANK1 == 0) - | SL_SI91X_POWER_MANAGER_M4SS_RAM_BANK_1 + | SL_SI91X_POWER_MANAGER_M4SS_RAM_BANK_1 #endif #if (SL_LP_RAM_BANK2 == 0) - | SL_SI91X_POWER_MANAGER_M4SS_RAM_BANK_2 + | SL_SI91X_POWER_MANAGER_M4SS_RAM_BANK_2 #endif #if (SL_LP_RAM_BANK3 == 0) - | SL_SI91X_POWER_MANAGER_M4SS_RAM_BANK_3 + | SL_SI91X_POWER_MANAGER_M4SS_RAM_BANK_3 #endif #if (SL_LP_RAM_BANK3 == 0) - | SL_SI91X_POWER_MANAGER_M4SS_RAM_BANK_3 + | SL_SI91X_POWER_MANAGER_M4SS_RAM_BANK_3 #endif #if (SL_LP_RAM_BANK4 == 0) - | SL_SI91X_POWER_MANAGER_M4SS_RAM_BANK_4 + | SL_SI91X_POWER_MANAGER_M4SS_RAM_BANK_4 #endif #if (SL_LP_RAM_BANK5 == 0) - | SL_SI91X_POWER_MANAGER_M4SS_RAM_BANK_5 + | SL_SI91X_POWER_MANAGER_M4SS_RAM_BANK_5 #endif #if (SL_LP_RAM_BANK6 == 0) - | SL_SI91X_POWER_MANAGER_M4SS_RAM_BANK_6 + | SL_SI91X_POWER_MANAGER_M4SS_RAM_BANK_6 #endif #if (SL_LP_RAM_BANK7 == 0) - | SL_SI91X_POWER_MANAGER_M4SS_RAM_BANK_7 + | SL_SI91X_POWER_MANAGER_M4SS_RAM_BANK_7 #endif #if (SL_LP_RAM_BANK8 == 0) - | SL_SI91X_POWER_MANAGER_M4SS_RAM_BANK_8 + | SL_SI91X_POWER_MANAGER_M4SS_RAM_BANK_8 #endif #if (SL_LP_RAM_BANK9 == 0) - | SL_SI91X_POWER_MANAGER_M4SS_RAM_BANK_9 + | SL_SI91X_POWER_MANAGER_M4SS_RAM_BANK_9 #endif #if (SL_LP_RAM_BANK10 == 0) - | SL_SI91X_POWER_MANAGER_M4SS_RAM_BANK_10 + | SL_SI91X_POWER_MANAGER_M4SS_RAM_BANK_10 #endif - ), - .ulpss_ram_banks = (0 + ), + .ulpss_ram_banks = (0 #if (SL_ULP_RAM_BANK2 == 0) - | SL_SI91X_POWER_MANAGER_ULPSS_RAM_BANK_2 + | SL_SI91X_POWER_MANAGER_ULPSS_RAM_BANK_2 #endif #if (SL_ULP_RAM_BANK3 == 0) - | SL_SI91X_POWER_MANAGER_ULPSS_RAM_BANK_3 + | SL_SI91X_POWER_MANAGER_ULPSS_RAM_BANK_3 #endif - ), + ), #endif }; diff --git a/matter/si91x/siwx917/BRD4338A/config/sl_si91x_power_manager_wakeup_source_config.h b/matter/si91x/siwx917/BRD4338A/config/sl_si91x_power_manager_wakeup_source_config.h index 43838bf786..a5414431f6 100644 --- a/matter/si91x/siwx917/BRD4338A/config/sl_si91x_power_manager_wakeup_source_config.h +++ b/matter/si91x/siwx917/BRD4338A/config/sl_si91x_power_manager_wakeup_source_config.h @@ -1,32 +1,32 @@ /***************************************************************************/ /** - * @file sl_si91x_power_manager_wakeup_source_config.h - * @brief Power Manager Wakeup Source Configuration - ******************************************************************************* - * # License - * Copyright 2023 Silicon Laboratories Inc. www.silabs.com - ******************************************************************************* - * - * SPDX-License-Identifier: Zlib - * - * The licensor of this software is Silicon Laboratories Inc. - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event will the authors be held liable for any damages - * arising from the use of this software. - * - * Permission is granted to anyone to use this software for any purpose, - * including commercial applications, and to alter it and redistribute it - * freely, subject to the following restrictions: - * - * 1. The origin of this software must not be misrepresented; you must not - * claim that you wrote the original software. If you use this software - * in a product, an acknowledgment in the product documentation would be - * appreciated but is not required. - * 2. Altered source versions must be plainly marked as such, and must not be - * misrepresented as being the original software. - * 3. This notice may not be removed or altered from any source distribution. - * - ******************************************************************************/ + * @file sl_si91x_power_manager_wakeup_source_config.h + * @brief Power Manager Wakeup Source Configuration + ******************************************************************************* + * # License + * Copyright 2023 Silicon Laboratories Inc. www.silabs.com + ******************************************************************************* + * + * SPDX-License-Identifier: Zlib + * + * The licensor of this software is Silicon Laboratories Inc. + * + * This software is provided 'as-is', without any express or implied + * warranty. In no event will the authors be held liable for any damages + * arising from the use of this software. + * + * Permission is granted to anyone to use this software for any purpose, + * including commercial applications, and to alter it and redistribute it + * freely, subject to the following restrictions: + * + * 1. The origin of this software must not be misrepresented; you must not + * claim that you wrote the original software. If you use this software + * in a product, an acknowledgment in the product documentation would be + * appreciated but is not required. + * 2. Altered source versions must be plainly marked as such, and must not be + * misrepresented as being the original software. + * 3. This notice may not be removed or altered from any source distribution. + * + ******************************************************************************/ #ifndef SL_SI91X_POWER_MANAGER_WAKEUP_SOURCE_CONFIG_H #define SL_SI91X_POWER_MANAGER_WAKEUP_SOURCE_CONFIG_H