Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-src by
system_MKL25Z4.h
00001 /* 00002 ** ################################################################### 00003 ** Processor: MKL25Z128VLK4 00004 ** Compilers: ARM Compiler 00005 ** Freescale C/C++ for Embedded ARM 00006 ** GNU C Compiler 00007 ** IAR ANSI C/C++ Compiler for ARM 00008 ** 00009 ** Reference manual: KL25RM, Rev.1, Jun 2012 00010 ** Version: rev. 1.1, 2012-06-21 00011 ** 00012 ** Abstract: 00013 ** Provides a system configuration function and a global variable that 00014 ** contains the system frequency. It configures the device and initializes 00015 ** the oscillator (PLL) that is part of the microcontroller device. 00016 ** 00017 ** Copyright: 2012 Freescale Semiconductor, Inc. All Rights Reserved. 00018 ** 00019 ** http: www.freescale.com 00020 ** mail: support@freescale.com 00021 ** 00022 ** Revisions: 00023 ** - rev. 1.0 (2012-06-13) 00024 ** Initial version. 00025 ** - rev. 1.1 (2012-06-21) 00026 ** Update according to reference manual rev. 1. 00027 ** 00028 ** ################################################################### 00029 */ 00030 00031 /** 00032 * @file MKL25Z4 00033 * @version 1.1 00034 * @date 2012-06-21 00035 * @brief Device specific configuration file for MKL25Z4 (header file) 00036 * 00037 * Provides a system configuration function and a global variable that contains 00038 * the system frequency. It configures the device and initializes the oscillator 00039 * (PLL) that is part of the microcontroller device. 00040 */ 00041 00042 #ifndef SYSTEM_MKL25Z4_H_ 00043 #define SYSTEM_MKL25Z4_H_ /**< Symbol preventing repeated inclusion */ 00044 00045 #ifdef __cplusplus 00046 extern "C" { 00047 #endif 00048 00049 #include <stdint.h> 00050 00051 /** 00052 * @brief System clock frequency (core clock) 00053 * 00054 * The system clock frequency supplied to the SysTick timer and the processor 00055 * core clock. This variable can be used by the user application to setup the 00056 * SysTick timer or configure other parameters. It may also be used by debugger to 00057 * query the frequency of the debug timer or configure the trace clock speed 00058 * SystemCoreClock is initialized with a correct predefined value. 00059 */ 00060 extern uint32_t SystemCoreClock; 00061 00062 /** 00063 * @brief Setup the microcontroller system. 00064 * 00065 * Typically this function configures the oscillator (PLL) that is part of the 00066 * microcontroller device. For systems with variable clock speed it also updates 00067 * the variable SystemCoreClock. SystemInit is called from startup_device file. 00068 */ 00069 void SystemInit (void); 00070 00071 /** 00072 * @brief Updates the SystemCoreClock variable. 00073 * 00074 * It must be called whenever the core clock is changed during program 00075 * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates 00076 * the current core clock. 00077 */ 00078 void SystemCoreClockUpdate (void); 00079 00080 #ifdef __cplusplus 00081 } 00082 #endif 00083 00084 #endif /* #if !defined(SYSTEM_MKL25Z4_H_) */
Generated on Tue Jul 12 2022 13:47:02 by
1.7.2
