From aea9464de83e201f5c4116a409463f084fcea0c5 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Wed, 26 Jun 2024 05:37:58 +0000 Subject: [PATCH] Restyled by clang-format --- .../autogen/sl_si91x_power_manager_handler.c | 118 +++++++++--------- .../autogen/sl_si91x_power_manager_init.h | 56 ++++----- .../sl_si91x_power_manager_wakeup_handler.c | 56 ++++----- .../sl_si91x_power_manager_wakeup_handler.h | 56 ++++----- .../config/sl_si91x_power_manager_config_3.h | 57 ++++----- ...si91x_power_manager_wakeup_source_config.h | 56 ++++----- 6 files changed, 200 insertions(+), 199 deletions(-) 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 41c91887bc..87e21ebac6 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,74 +1,74 @@ /*************************************************************************** - * @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. - ******************************************************************************/ + * 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. - ******************************************************************************/ + * 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. - ******************************************************************************/ + * 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; 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 d993b53cbd..997bd17868 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 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 0dcade4812..6c5ae000a8 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,32 +1,32 @@ /*************************************************************************** - * @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) { 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 95fb72ab5e..3b59d7f16e 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,32 +1,32 @@ /*************************************************************************** - * @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 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 798a667bf7..ad72af5dda 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,33 @@ /*************************************************************************** - * @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 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 909cb2ad00..c4f49464f9 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