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 /* *INDENT-OFF* */ 23 24 #ifndef __SYSTEM_SIM3U1XX_H__ 25 #define __SYSTEM_SIM3U1XX_H__ 26 27 #ifdef __cplusplus 28 extern "C" { 29 #endif 30 31 // Refer to the CMSIS_V2P00 specification for detailed documentation. 32 // Contains the system core clock (which is the system clock frequency supplied 33 // to the SysTick timer and the processor core clock). This variable can be used 34 // by the user application to setup the SysTick timer or configure other 35 // parameters. It may also be used by debugger to query the frequency of the 36 // debug timer or configure the trace clock speed. 37 // SystemCoreClock is initialized with a correct predefined value. 38 // The compiler must be configured to avoid the removal of this variable in case 39 // that the application program is not using it. It is important for debug 40 // systems that the variable is physically present in memory so that it can be 41 // examined to configure the debugger. 42 extern uint32_t SystemCoreClock; 43 44 // Refer to the CMSIS_V2P00 specification for detailed documentation. 45 // Setup the microcontroller system. 46 // For systems with variable clock speed it also updates the variable SystemCoreClock. 47 extern void SystemInit(void); 48 49 // Application specific system initialization code. Application needs to have this function. 50 extern void mySystemInit(void); 51 52 // Refer to the CMSIS_V2P00 specification for detailed documentation. 53 // Updates the variable SystemCoreClock and must be called whenever the core 54 // clock is changed during program execution. SystemCoreClockUpdate() evaluates 55 // the clock register settings and calculates the current core clock. 56 extern void SystemCoreClockUpdate(void); 57 58 #ifdef __cplusplus 59 } 60 #endif 61 62 #endif /*__SYSTEM_SIM3U1XX_H__ */ 63 64 //-eof-------------------------------------------------------------------------- 65 66