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 #define SL_SLEEPTIMER_PERIPHERAL_WTIMER  6
43 #define SL_SLEEPTIMER_PERIPHERAL_TIMER   7
44 
45 // <o SL_SLEEPTIMER_PERIPHERAL> Timer Peripheral Used by Sleeptimer
46 //   <SL_SLEEPTIMER_PERIPHERAL_DEFAULT=> Default (auto select)
47 //   <SL_SLEEPTIMER_PERIPHERAL_RTCC=> RTCC
48 //   <SL_SLEEPTIMER_PERIPHERAL_PRORTC=> Radio internal RTC (PRORTC)
49 //   <SL_SLEEPTIMER_PERIPHERAL_RTC=> RTC
50 //   <SL_SLEEPTIMER_PERIPHERAL_SYSRTC=> SYSRTC
51 //   <SL_SLEEPTIMER_PERIPHERAL_BURTC=> Back-Up RTC (BURTC)
52 //   <SL_SLEEPTIMER_PERIPHERAL_WTIMER=> WTIMER
53 //   <SL_SLEEPTIMER_PERIPHERAL_TIMER=> TIMER
54 // <i> Selection of the Timer Peripheral Used by the Sleeptimer
55 #define SL_SLEEPTIMER_PERIPHERAL  SL_SLEEPTIMER_PERIPHERAL_DEFAULT
56 
57 // <o SL_SLEEPTIMER_TIMER_INSTANCE> TIMER/WTIMER Instance Used by Sleeptimer (not applicable for other peripherals)
58 // <i> Make sure TIMER instance size is 32bits. Check datasheet for 32bits TIMERs.
59 // <i> Default: 0
60 #define SL_SLEEPTIMER_TIMER_INSTANCE  0
61 
62 // <q SL_SLEEPTIMER_WALLCLOCK_CONFIG> Enable wallclock functionality
63 // <i> Enable or disable wallclock functionalities (get_time, get_date, etc).
64 // <i> Default: 0
65 #define SL_SLEEPTIMER_WALLCLOCK_CONFIG  0
66 
67 // <o SL_SLEEPTIMER_FREQ_DIVIDER> Timer frequency divider (not applicable for WTIMER/TIMER)
68 // <i> WTIMER/TIMER peripherals are always prescaled to 1024.
69 // <i> Default: 1
70 #define SL_SLEEPTIMER_FREQ_DIVIDER  1
71 
72 // <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.
73 // <i> Default: 0
74 #define SL_SLEEPTIMER_PRORTC_HAL_OWNS_IRQ_HANDLER  0
75 
76 // <q SL_SLEEPTIMER_DEBUGRUN> Enable DEBUGRUN functionality on hardware RTC.
77 // <i> Default: 0
78 #define SL_SLEEPTIMER_DEBUGRUN  0
79 
80 #endif /* SLEEPTIMER_CONFIG_H */
81 
82 // <<< end of configuration section >>>
83