1 /***************************************************************************//** 2 * @file 3 * @brief API defining access to SYSCFG registers 4 ******************************************************************************* 5 * # License 6 * <b>Copyright 2023 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 #ifndef SL_HAL_SYSCFG_H 32 #define SL_HAL_SYSCFG_H 33 34 #include <stdint.h> 35 36 #if defined(SL_TRUSTZONE_NONSECURE) 37 #include "sli_tz_service_syscfg.h" 38 #endif 39 40 #ifdef __cplusplus 41 extern "C" { 42 #endif 43 44 /***************************************************************************//** 45 * @addtogroup syscfg SYSTEM CONFIGURATION - System Configurations 46 * @brief Syscfg API 47 * @details 48 * 49 * @{ 50 ******************************************************************************/ 51 52 /******************************************************************************* 53 ********************************* DEFINES ********************************* 54 ******************************************************************************/ 55 56 /******************************************************************************* 57 ******************************** ENUMS ************************************ 58 ******************************************************************************/ 59 60 /******************************************************************************* 61 ******************************* STRUCTS *********************************** 62 ******************************************************************************/ 63 64 /******************************************************************************* 65 ******************************** TZ SERVICES ********************************** 66 ******************************************************************************/ 67 68 /******************************************************************************* 69 * @brief 70 * Reads CHIPREV register. 71 ******************************************************************************/ 72 uint32_t sl_hal_syscfg_read_chip_rev(void); 73 74 /******************************************************************************* 75 * @brief 76 * Set SYSTICEXTCLKEN bit in CFGSYSTIC to one. 77 ******************************************************************************/ 78 void sl_hal_syscfg_set_systicextclken_cfgsystic(void); 79 80 /******************************************************************************* 81 * @brief 82 * Clear SYSTICEXTCLKEN bit in CFGSYSTIC to zero. 83 ******************************************************************************/ 84 void sl_hal_syscfg_clear_systicextclken_cfgsystic(void); 85 86 #ifdef __cplusplus 87 } 88 #endif 89 #endif // SL_HAL_SYSCFG_H 90