1 /***************************************************************************//**
2  * @file
3  * @brief Device initialization for HFRCO.
4  *******************************************************************************
5  * # License
6  * <b>Copyright 2019 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 #ifndef SL_DEVICE_INIT_HFRCO_H
31 #define SL_DEVICE_INIT_HFRCO_H
32 
33 #include "sl_status.h"
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 /**
40  * @addtogroup device_init
41  * @{
42  * @addtogroup device_init_hfrco HFRCO Initialization
43  * @brief Initialize the HFRCO oscillator
44  * @details
45  * Configure the frequency band of the HFRCO. The configuration define
46  * SL_DEVICE_INIT_HFRCO_BAND is used to configure the frequency.
47  * If using Simplicity Studio, this configuration header is also configurable
48  * through the Project Configurator, by selecting the "Device Init: HFRCO" configuration
49  * component.
50  * @{
51  */
52 
53 /**
54  * Initialize HFRCO
55  *
56  * @details
57  * Configure the frequency band of the HFRCO. The configuration define
58  * SL_DEVICE_INIT_HFRCO_BAND is used to configure the frequency.
59  *
60  * @return Status code
61  * @retval SL_STATUS_OK HFRCO initialized successfully
62  */
63 sl_status_t sl_device_init_hfrco(void);
64 
65 /**
66  * @} device_init_hfrco
67  * @} device_init
68  */
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 #endif // SL_DEVICE_INIT_HFRCO_H
75