1 /***************************************************************************//** 2 * @file 3 * @brief Power Manager configuration file. 4 ******************************************************************************* 5 * # License 6 * <b>Copyright 2020 Silicon Laboratories Inc. www.silabs.com</b> 7 ******************************************************************************* 8 * 9 * SPDX-License-Identifier: Zlib 10 * 11 * The licensor of this software is Silicon Laboratories Inc. 12 * 13 * This software is provided 'as-is', without any express or implied 14 * warranty. In no event will the authors be held liable for any damages 15 * arising from the use of this software. 16 * 17 * Permission is granted to anyone to use this software for any purpose, 18 * including commercial applications, and to alter it and redistribute it 19 * freely, subject to the following restrictions: 20 * 21 * 1. The origin of this software must not be misrepresented; you must not 22 * claim that you wrote the original software. If you use this software 23 * in a product, an acknowledgment in the product documentation would be 24 * appreciated but is not required. 25 * 2. Altered source versions must be plainly marked as such, and must not be 26 * misrepresented as being the original software. 27 * 3. This notice may not be removed or altered from any source distribution. 28 * 29 ******************************************************************************/ 30 31 // <<< Use Configuration Wizard in Context Menu >>> 32 33 #ifndef SL_POWER_MANAGER_CONFIG_H 34 #define SL_POWER_MANAGER_CONFIG_H 35 36 // <h>Power Manager Configuration 37 38 // <q SL_POWER_MANAGER_CUSTOM_HF_OSCILLATOR_IRQ_HANDLER> Enable custom IRQ handler for external HF oscillator. 39 // <i> Enable if CMU_IRQHandler/HFXO0_IRQHandler is needed from your application. 40 // <i> The function sl_power_manager_irq_handler() will have to be called from you custom handler if this is enabled. 41 // <i> Default: 0 42 #define SL_POWER_MANAGER_CUSTOM_HF_OSCILLATOR_IRQ_HANDLER 0 43 44 // <q SL_POWER_MANAGER_CONFIG_VOLTAGE_SCALING_FAST_WAKEUP> Enable fast wakeup (disable voltage scaling in EM2/3 mode) 45 // <i> Enable or disable voltage scaling in EM2/3 modes (when available). This decreases wakeup time by about 30 us. 46 // <i> Deprecated. It is replaced by the function sl_power_manager_em23_voltage_scaling_enable_fast_wakeup() 47 // <i> Default: 0 48 #define SL_POWER_MANAGER_CONFIG_VOLTAGE_SCALING_FAST_WAKEUP 0 49 50 // <e SL_POWER_MANAGER_DEBUG> Enable debugging feature 51 // <i> Enable or disable debugging features (trace the different modules that have requirements). 52 // <i> Default: 0 53 #define SL_POWER_MANAGER_DEBUG 0 54 55 // <o SL_POWER_MANAGER_DEBUG_POOL_SIZE> Maximum numbers of requirements that can be logged 56 // <i> Default: 10 57 #define SL_POWER_MANAGER_DEBUG_POOL_SIZE 10 58 // </e> 59 60 // <o SL_POWER_MANAGER_INIT_EMU_EM4_PIN_RETENTION_MODE> Pin retention mode 61 // <i> 62 // <EMU_EM4CTRL_EM4IORETMODE_DISABLE=> No retention 63 // <EMU_EM4CTRL_EM4IORETMODE_EM4EXIT=> Retention through EM4 64 // <EMU_EM4CTRL_EM4IORETMODE_SWUNLATCH=> Retention through EM4 and wakeup 65 // <d> power_manager_pin_retention_disable 66 #define SL_POWER_MANAGER_INIT_EMU_EM4_PIN_RETENTION_MODE EMU_EM4CTRL_EM4IORETMODE_DISABLE 67 68 // <e SL_POWER_MANAGER_EXECUTION_MODES_FEATURE_EN> Enable Execution Modes feature 69 // <i> This will override the SL_CLOCK_MANAGER_SYSCLK_SOURCE config in Clock Manager. 70 // <i> The SYSCLK source will be hardcoded to HFRCODPLL in standard execution mode and will be changed to SOCPLL when switching to performance mode. 71 // <i> Default: 0 72 #define SL_POWER_MANAGER_EXECUTION_MODES_FEATURE_EN 0 73 // </e> 74 75 // <e SL_POWER_MANAGER_QSPI_CLOCK_SWITCH_IN_SLEEP_EN> Enable QSPI clock switch for sleep 76 // <i> Enable/Disable the QSPI clock switching when entering sleep. 77 // <i> By default the QSPI clock uses a PLL. To further reduce the power consumption in sleep, the QSPI can be switched to a RCO oscillator during the sleep period. 78 // <i> Default: 1 79 #define SL_POWER_MANAGER_QSPI_CLOCK_SWITCH_IN_SLEEP_EN 1 80 // </e> 81 // </h> 82 83 #endif /* SL_POWER_MANAGER_CONFIG_H */ 84 85 // <<< end of configuration section >>> 86