1 /***************************************************************************//**
2  * @file
3  * @brief Sleep Timer 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_SLEEPTIMER_CONFIG_H
34 #define SL_SLEEPTIMER_CONFIG_H
35 
36 #define SL_SLEEPTIMER_PERIPHERAL_DEFAULT 0
37 #define SL_SLEEPTIMER_PERIPHERAL_RTCC    1
38 #define SL_SLEEPTIMER_PERIPHERAL_PRORTC  2
39 #define SL_SLEEPTIMER_PERIPHERAL_RTC     3
40 #define SL_SLEEPTIMER_PERIPHERAL_SYSRTC  4
41 #define SL_SLEEPTIMER_PERIPHERAL_BURTC   5
42 
43 // <o SL_SLEEPTIMER_PERIPHERAL> Timer Peripheral Used by Sleeptimer
44 //   <SL_SLEEPTIMER_PERIPHERAL_DEFAULT=> Default (auto select)
45 //   <SL_SLEEPTIMER_PERIPHERAL_RTCC=> RTCC
46 //   <SL_SLEEPTIMER_PERIPHERAL_PRORTC=> Radio internal RTC (PRORTC)
47 //   <SL_SLEEPTIMER_PERIPHERAL_RTC=> RTC
48 //   <SL_SLEEPTIMER_PERIPHERAL_SYSRTC=> SYSRTC
49 //   <SL_SLEEPTIMER_PERIPHERAL_BURTC=> Back-Up RTC (BURTC)
50 // <i> Selection of the Timer Peripheral Used by the Sleeptimer
51 #define SL_SLEEPTIMER_PERIPHERAL  SL_SLEEPTIMER_PERIPHERAL_DEFAULT
52 
53 // <q SL_SLEEPTIMER_WALLCLOCK_CONFIG> Enable wallclock functionality
54 // <i> Enable or disable wallclock functionalities (get_time, get_date, etc).
55 // <i> Default: 0
56 #define SL_SLEEPTIMER_WALLCLOCK_CONFIG  0
57 
58 // <o SL_SLEEPTIMER_FREQ_DIVIDER> Timer frequency divider
59 // <i> Default: 1
60 #define SL_SLEEPTIMER_FREQ_DIVIDER  1
61 
62 // <q SL_SLEEPTIMER_PRORTC_HAL_OWNS_IRQ_HANDLER> If Radio internal RTC (PRORTC) HAL is used, determines if it owns the IRQ handler. Enable, if no wireless stack is used.
63 // <i> Default: 0
64 #define SL_SLEEPTIMER_PRORTC_HAL_OWNS_IRQ_HANDLER  0
65 
66 // <q SL_SLEEPTIMER_DEBUGRUN> Enable DEBUGRUN functionality on hardware RTC.
67 // <i> Default: 0
68 #define SL_SLEEPTIMER_DEBUGRUN  0
69 
70 #endif /* SLEEPTIMER_CONFIG_H */
71 
72 // <<< end of configuration section >>>
73