/***************************************************************************//** * @file * @brief Sleep Timer configuration file. ******************************************************************************* * # License * Copyright 2020 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. * ******************************************************************************/ // <<< Use Configuration Wizard in Context Menu >>> #ifndef SL_SLEEPTIMER_CONFIG_H #define SL_SLEEPTIMER_CONFIG_H #define SL_SLEEPTIMER_PERIPHERAL_DEFAULT 0 #define SL_SLEEPTIMER_PERIPHERAL_RTCC 1 #define SL_SLEEPTIMER_PERIPHERAL_PRORTC 2 #define SL_SLEEPTIMER_PERIPHERAL_RTC 3 #define SL_SLEEPTIMER_PERIPHERAL_SYSRTC 4 #define SL_SLEEPTIMER_PERIPHERAL_BURTC 5 #define SL_SLEEPTIMER_PERIPHERAL_WTIMER 6 #define SL_SLEEPTIMER_PERIPHERAL_TIMER 7 // Timer Peripheral Used by Sleeptimer // Default (auto select) // RTCC // Radio internal RTC (PRORTC) // RTC // SYSRTC // Back-Up RTC (BURTC) // WTIMER // TIMER // Selection of the Timer Peripheral Used by the Sleeptimer #define SL_SLEEPTIMER_PERIPHERAL SL_SLEEPTIMER_PERIPHERAL_DEFAULT // TIMER/WTIMER Instance Used by Sleeptimer (not applicable for other peripherals) // Make sure TIMER instance size is 32bits. Check datasheet for 32bits TIMERs. // Default: 0 #define SL_SLEEPTIMER_TIMER_INSTANCE 0 // Enable wallclock functionality // Enable or disable wallclock functionalities (get_time, get_date, etc). // Default: 0 #define SL_SLEEPTIMER_WALLCLOCK_CONFIG 0 // Timer frequency divider (not applicable for WTIMER/TIMER) // WTIMER/TIMER peripherals are always prescaled to 1024. // Default: 1 #define SL_SLEEPTIMER_FREQ_DIVIDER 1 // If Radio internal RTC (PRORTC) HAL is used, determines if it owns the IRQ handler. Enable, if no wireless stack is used. // Default: 0 #define SL_SLEEPTIMER_PRORTC_HAL_OWNS_IRQ_HANDLER 0 // Enable DEBUGRUN functionality on hardware RTC. // Default: 0 #define SL_SLEEPTIMER_DEBUGRUN 0 #endif /* SLEEPTIMER_CONFIG_H */ // <<< end of configuration section >>>