1 //------------------------------------------------------------------------------ 2 // Copyright 2012 (c) Silicon Laboratories Inc. 3 // 4 // SPDX-License-Identifier: Zlib 5 // 6 // This siHAL software is provided 'as-is', without any express or implied 7 // warranty. In no event will the authors be held liable for any damages 8 // arising from the use of this software. 9 // 10 // Permission is granted to anyone to use this software for any purpose, 11 // including commercial applications, and to alter it and redistribute it 12 // freely, subject to the following restrictions: 13 // 14 // 1. The origin of this software must not be misrepresented; you must not 15 // claim that you wrote the original software. If you use this software 16 // in a product, an acknowledgment in the product documentation would be 17 // appreciated but is not required. 18 // 2. Altered source versions must be plainly marked as such, and must not be 19 // misrepresented as being the original software. 20 // 3. This notice may not be removed or altered from any source distribution. 21 //------------------------------------------------------------------------------ 22 23 #ifndef __SYSTEM_SIM3L1XX_H__ 24 #define __SYSTEM_SIM3L1XX_H__ 25 26 #ifdef __cplusplus 27 extern "C" { 28 #endif 29 30 // Refer to the CMSIS_V2P00 specification for detailed documentation. 31 // Contains the system core clock (which is the system clock frequency supplied 32 // to the SysTick timer and the processor core clock). This variable can be used 33 // by the user application to setup the SysTick timer or configure other 34 // parameters. It may also be used by debugger to query the frequency of the 35 // debug timer or configure the trace clock speed. 36 // SystemCoreClock is initialized with a correct predefined value. 37 // The compiler must be configured to avoid the removal of this variable in case 38 // that the application program is not using it. It is important for debug 39 // systems that the variable is physically present in memory so that it can be 40 // examined to configure the debugger. 41 extern uint32_t SystemCoreClock; 42 43 // Refer to the CMSIS_V2P00 specification for detailed documentation. 44 // Setup the microcontroller system. 45 // For systems with variable clock speed it also updates the variable SystemCoreClock. 46 extern void SystemInit(void); 47 48 // Application specific system initialization code. Application needs to have this function. 49 extern void mySystemInit(void); 50 51 // Refer to the CMSIS_V2P00 specification for detailed documentation. 52 // Updates the variable SystemCoreClock and must be called whenever the core 53 // clock is changed during program execution. SystemCoreClockUpdate() evaluates 54 // the clock register settings and calculates the current core clock. 55 extern void SystemCoreClockUpdate(void); 56 57 #ifdef __cplusplus 58 } 59 #endif 60 61 #endif /*__SYSTEM_SIM3L1XX_H__ */ 62 63 //-eof-------------------------------------------------------------------------- 64 65