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 ** Processors: MKL05Z32FK4
Jasper_lee 0:b16d94660a33 4 ** MKL05Z32LC4
Jasper_lee 0:b16d94660a33 5 ** MKL05Z32VLF4
Jasper_lee 0:b16d94660a33 6 **
Jasper_lee 0:b16d94660a33 7 ** Compilers: ARM Compiler
Jasper_lee 0:b16d94660a33 8 ** Freescale C/C++ for Embedded ARM
Jasper_lee 0:b16d94660a33 9 ** GNU C Compiler
Jasper_lee 0:b16d94660a33 10 ** IAR ANSI C/C++ Compiler for ARM
Jasper_lee 0:b16d94660a33 11 **
Jasper_lee 0:b16d94660a33 12 ** Reference manual: KL05P48M48SF1RM, Rev.3, Sep 2012
Jasper_lee 0:b16d94660a33 13 ** Version: rev. 1.6, 2013-04-11
Jasper_lee 0:b16d94660a33 14 **
Jasper_lee 0:b16d94660a33 15 ** Abstract:
Jasper_lee 0:b16d94660a33 16 ** Provides a system configuration function and a global variable that
Jasper_lee 0:b16d94660a33 17 ** contains the system frequency. It configures the device and initializes
Jasper_lee 0:b16d94660a33 18 ** the oscillator (PLL) that is part of the microcontroller device.
Jasper_lee 0:b16d94660a33 19 **
Jasper_lee 0:b16d94660a33 20 ** Copyright: 2013 Freescale, Inc. All Rights Reserved.
Jasper_lee 0:b16d94660a33 21 **
Jasper_lee 0:b16d94660a33 22 ** http: www.freescale.com
Jasper_lee 0:b16d94660a33 23 ** mail: support@freescale.com
Jasper_lee 0:b16d94660a33 24 **
Jasper_lee 0:b16d94660a33 25 ** Revisions:
Jasper_lee 0:b16d94660a33 26 ** - rev. 1.0 (2012-06-08)
Jasper_lee 0:b16d94660a33 27 ** Initial version.
Jasper_lee 0:b16d94660a33 28 ** - rev. 1.1 (2012-06-21)
Jasper_lee 0:b16d94660a33 29 ** Update according to reference manual rev. 1.
Jasper_lee 0:b16d94660a33 30 ** - rev. 1.2 (2012-08-01)
Jasper_lee 0:b16d94660a33 31 ** Device type UARTLP changed to UART0.
Jasper_lee 0:b16d94660a33 32 ** Missing PORTB_IRQn interrupt number definition added.
Jasper_lee 0:b16d94660a33 33 ** - rev. 1.3 (2012-10-04)
Jasper_lee 0:b16d94660a33 34 ** Update according to reference manual rev. 3.
Jasper_lee 0:b16d94660a33 35 ** - rev. 1.4 (2012-11-22)
Jasper_lee 0:b16d94660a33 36 ** MCG module - bit LOLS in MCG_S register renamed to LOLS0.
Jasper_lee 0:b16d94660a33 37 ** NV registers - bit EZPORT_DIS in NV_FOPT register removed.
Jasper_lee 0:b16d94660a33 38 ** - rev. 1.5 (2013-04-05)
Jasper_lee 0:b16d94660a33 39 ** Changed start of doxygen comment.
Jasper_lee 0:b16d94660a33 40 ** - rev. 1.6 (2013-04-11)
Jasper_lee 0:b16d94660a33 41 ** SystemInit methods updated with predefined initialization sequence.
Jasper_lee 0:b16d94660a33 42 **
Jasper_lee 0:b16d94660a33 43 ** ###################################################################
Jasper_lee 0:b16d94660a33 44 */
Jasper_lee 0:b16d94660a33 45
Jasper_lee 0:b16d94660a33 46 /*!
Jasper_lee 0:b16d94660a33 47 * @file MKL05Z4
Jasper_lee 0:b16d94660a33 48 * @version 1.6
Jasper_lee 0:b16d94660a33 49 * @date 2013-04-11
Jasper_lee 0:b16d94660a33 50 * @brief Device specific configuration file for MKL05Z4 (header file)
Jasper_lee 0:b16d94660a33 51 *
Jasper_lee 0:b16d94660a33 52 * Provides a system configuration function and a global variable that contains
Jasper_lee 0:b16d94660a33 53 * the system frequency. It configures the device and initializes the oscillator
Jasper_lee 0:b16d94660a33 54 * (PLL) that is part of the microcontroller device.
Jasper_lee 0:b16d94660a33 55 */
Jasper_lee 0:b16d94660a33 56
Jasper_lee 0:b16d94660a33 57 #ifndef SYSTEM_MKL05Z4_H_
Jasper_lee 0:b16d94660a33 58 #define SYSTEM_MKL05Z4_H_ /**< Symbol preventing repeated inclusion */
Jasper_lee 0:b16d94660a33 59
Jasper_lee 0:b16d94660a33 60 #ifdef __cplusplus
Jasper_lee 0:b16d94660a33 61 extern "C" {
Jasper_lee 0:b16d94660a33 62 #endif
Jasper_lee 0:b16d94660a33 63
Jasper_lee 0:b16d94660a33 64 #include <stdint.h>
Jasper_lee 0:b16d94660a33 65
Jasper_lee 0:b16d94660a33 66 /**
Jasper_lee 0:b16d94660a33 67 * @brief System clock frequency (core clock)
Jasper_lee 0:b16d94660a33 68 *
Jasper_lee 0:b16d94660a33 69 * The system clock frequency supplied to the SysTick timer and the processor
Jasper_lee 0:b16d94660a33 70 * core clock. This variable can be used by the user application to setup the
Jasper_lee 0:b16d94660a33 71 * SysTick timer or configure other parameters. It may also be used by debugger to
Jasper_lee 0:b16d94660a33 72 * query the frequency of the debug timer or configure the trace clock speed
Jasper_lee 0:b16d94660a33 73 * SystemCoreClock is initialized with a correct predefined value.
Jasper_lee 0:b16d94660a33 74 */
Jasper_lee 0:b16d94660a33 75 extern uint32_t SystemCoreClock;
Jasper_lee 0:b16d94660a33 76
Jasper_lee 0:b16d94660a33 77 /**
Jasper_lee 0:b16d94660a33 78 * @brief Setup the microcontroller system.
Jasper_lee 0:b16d94660a33 79 *
Jasper_lee 0:b16d94660a33 80 * Typically this function configures the oscillator (PLL) that is part of the
Jasper_lee 0:b16d94660a33 81 * microcontroller device. For systems with variable clock speed it also updates
Jasper_lee 0:b16d94660a33 82 * the variable SystemCoreClock. SystemInit is called from startup_device file.
Jasper_lee 0:b16d94660a33 83 */
Jasper_lee 0:b16d94660a33 84 void SystemInit (void);
Jasper_lee 0:b16d94660a33 85
Jasper_lee 0:b16d94660a33 86 /**
Jasper_lee 0:b16d94660a33 87 * @brief Updates the SystemCoreClock variable.
Jasper_lee 0:b16d94660a33 88 *
Jasper_lee 0:b16d94660a33 89 * It must be called whenever the core clock is changed during program
Jasper_lee 0:b16d94660a33 90 * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates
Jasper_lee 0:b16d94660a33 91 * the current core clock.
Jasper_lee 0:b16d94660a33 92 */
Jasper_lee 0:b16d94660a33 93 void SystemCoreClockUpdate (void);
Jasper_lee 0:b16d94660a33 94
Jasper_lee 0:b16d94660a33 95 #ifdef __cplusplus
Jasper_lee 0:b16d94660a33 96 }
Jasper_lee 0:b16d94660a33 97 #endif
Jasper_lee 0:b16d94660a33 98
Jasper_lee 0:b16d94660a33 99 #endif /* #if !defined(SYSTEM_MKL05Z4_H_) */