change some io settings for TWR-K22F-120M

Dependents:   twr_helloworld

Committer:
Jasper_lee
Date:
Tue Dec 23 03:35:08 2014 +0000
Revision:
0:b16d94660a33
change some io setting used in TWR-K22F120M

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Jasper_lee 0:b16d94660a33 1 /*
Jasper_lee 0:b16d94660a33 2 ** ###################################################################
Jasper_lee 0:b16d94660a33 3 ** Processor: MKL25Z128VLK4
Jasper_lee 0:b16d94660a33 4 ** Compilers: ARM Compiler
Jasper_lee 0:b16d94660a33 5 ** Freescale C/C++ for Embedded ARM
Jasper_lee 0:b16d94660a33 6 ** GNU C Compiler
Jasper_lee 0:b16d94660a33 7 ** IAR ANSI C/C++ Compiler for ARM
Jasper_lee 0:b16d94660a33 8 **
Jasper_lee 0:b16d94660a33 9 ** Reference manual: KL25RM, Rev.1, Jun 2012
Jasper_lee 0:b16d94660a33 10 ** Version: rev. 1.1, 2012-06-21
Jasper_lee 0:b16d94660a33 11 **
Jasper_lee 0:b16d94660a33 12 ** Abstract:
Jasper_lee 0:b16d94660a33 13 ** Provides a system configuration function and a global variable that
Jasper_lee 0:b16d94660a33 14 ** contains the system frequency. It configures the device and initializes
Jasper_lee 0:b16d94660a33 15 ** the oscillator (PLL) that is part of the microcontroller device.
Jasper_lee 0:b16d94660a33 16 **
Jasper_lee 0:b16d94660a33 17 ** Copyright: 2012 Freescale Semiconductor, Inc. All Rights Reserved.
Jasper_lee 0:b16d94660a33 18 **
Jasper_lee 0:b16d94660a33 19 ** http: www.freescale.com
Jasper_lee 0:b16d94660a33 20 ** mail: support@freescale.com
Jasper_lee 0:b16d94660a33 21 **
Jasper_lee 0:b16d94660a33 22 ** Revisions:
Jasper_lee 0:b16d94660a33 23 ** - rev. 1.0 (2012-06-13)
Jasper_lee 0:b16d94660a33 24 ** Initial version.
Jasper_lee 0:b16d94660a33 25 ** - rev. 1.1 (2012-06-21)
Jasper_lee 0:b16d94660a33 26 ** Update according to reference manual rev. 1.
Jasper_lee 0:b16d94660a33 27 **
Jasper_lee 0:b16d94660a33 28 ** ###################################################################
Jasper_lee 0:b16d94660a33 29 */
Jasper_lee 0:b16d94660a33 30
Jasper_lee 0:b16d94660a33 31 /**
Jasper_lee 0:b16d94660a33 32 * @file MKL25Z4
Jasper_lee 0:b16d94660a33 33 * @version 1.1
Jasper_lee 0:b16d94660a33 34 * @date 2012-06-21
Jasper_lee 0:b16d94660a33 35 * @brief Device specific configuration file for MKL25Z4 (header file)
Jasper_lee 0:b16d94660a33 36 *
Jasper_lee 0:b16d94660a33 37 * Provides a system configuration function and a global variable that contains
Jasper_lee 0:b16d94660a33 38 * the system frequency. It configures the device and initializes the oscillator
Jasper_lee 0:b16d94660a33 39 * (PLL) that is part of the microcontroller device.
Jasper_lee 0:b16d94660a33 40 */
Jasper_lee 0:b16d94660a33 41
Jasper_lee 0:b16d94660a33 42 #ifndef SYSTEM_MKL25Z4_H_
Jasper_lee 0:b16d94660a33 43 #define SYSTEM_MKL25Z4_H_ /**< Symbol preventing repeated inclusion */
Jasper_lee 0:b16d94660a33 44
Jasper_lee 0:b16d94660a33 45 #ifdef __cplusplus
Jasper_lee 0:b16d94660a33 46 extern "C" {
Jasper_lee 0:b16d94660a33 47 #endif
Jasper_lee 0:b16d94660a33 48
Jasper_lee 0:b16d94660a33 49 #include <stdint.h>
Jasper_lee 0:b16d94660a33 50
Jasper_lee 0:b16d94660a33 51 /**
Jasper_lee 0:b16d94660a33 52 * @brief System clock frequency (core clock)
Jasper_lee 0:b16d94660a33 53 *
Jasper_lee 0:b16d94660a33 54 * The system clock frequency supplied to the SysTick timer and the processor
Jasper_lee 0:b16d94660a33 55 * core clock. This variable can be used by the user application to setup the
Jasper_lee 0:b16d94660a33 56 * SysTick timer or configure other parameters. It may also be used by debugger to
Jasper_lee 0:b16d94660a33 57 * query the frequency of the debug timer or configure the trace clock speed
Jasper_lee 0:b16d94660a33 58 * SystemCoreClock is initialized with a correct predefined value.
Jasper_lee 0:b16d94660a33 59 */
Jasper_lee 0:b16d94660a33 60 extern uint32_t SystemCoreClock;
Jasper_lee 0:b16d94660a33 61
Jasper_lee 0:b16d94660a33 62 /**
Jasper_lee 0:b16d94660a33 63 * @brief Setup the microcontroller system.
Jasper_lee 0:b16d94660a33 64 *
Jasper_lee 0:b16d94660a33 65 * Typically this function configures the oscillator (PLL) that is part of the
Jasper_lee 0:b16d94660a33 66 * microcontroller device. For systems with variable clock speed it also updates
Jasper_lee 0:b16d94660a33 67 * the variable SystemCoreClock. SystemInit is called from startup_device file.
Jasper_lee 0:b16d94660a33 68 */
Jasper_lee 0:b16d94660a33 69 void SystemInit (void);
Jasper_lee 0:b16d94660a33 70
Jasper_lee 0:b16d94660a33 71 /**
Jasper_lee 0:b16d94660a33 72 * @brief Updates the SystemCoreClock variable.
Jasper_lee 0:b16d94660a33 73 *
Jasper_lee 0:b16d94660a33 74 * It must be called whenever the core clock is changed during program
Jasper_lee 0:b16d94660a33 75 * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates
Jasper_lee 0:b16d94660a33 76 * the current core clock.
Jasper_lee 0:b16d94660a33 77 */
Jasper_lee 0:b16d94660a33 78 void SystemCoreClockUpdate (void);
Jasper_lee 0:b16d94660a33 79
Jasper_lee 0:b16d94660a33 80 #ifdef __cplusplus
Jasper_lee 0:b16d94660a33 81 }
Jasper_lee 0:b16d94660a33 82 #endif
Jasper_lee 0:b16d94660a33 83
Jasper_lee 0:b16d94660a33 84 #endif /* #if !defined(SYSTEM_MKL25Z4_H_) */