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 * @file: system_LPC8xx.h
Jasper_lee 0:b16d94660a33 3 * @purpose: CMSIS Cortex-M0+ Device Peripheral Access Layer Header File
Jasper_lee 0:b16d94660a33 4 * for the NXP LPC8xx Device Series
Jasper_lee 0:b16d94660a33 5 * @version: V1.0
Jasper_lee 0:b16d94660a33 6 * @date: 16. Aug. 2012
Jasper_lee 0:b16d94660a33 7 *----------------------------------------------------------------------------
Jasper_lee 0:b16d94660a33 8 *
Jasper_lee 0:b16d94660a33 9 * Copyright (C) 2012 ARM Limited. All rights reserved.
Jasper_lee 0:b16d94660a33 10 *
Jasper_lee 0:b16d94660a33 11 * ARM Limited (ARM) is supplying this software for use with Cortex-M0+
Jasper_lee 0:b16d94660a33 12 * processor based microcontrollers. This file can be freely distributed
Jasper_lee 0:b16d94660a33 13 * within development tools that are supporting such ARM based processors.
Jasper_lee 0:b16d94660a33 14 *
Jasper_lee 0:b16d94660a33 15 * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
Jasper_lee 0:b16d94660a33 16 * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
Jasper_lee 0:b16d94660a33 17 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
Jasper_lee 0:b16d94660a33 18 * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
Jasper_lee 0:b16d94660a33 19 * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
Jasper_lee 0:b16d94660a33 20 *
Jasper_lee 0:b16d94660a33 21 ******************************************************************************/
Jasper_lee 0:b16d94660a33 22
Jasper_lee 0:b16d94660a33 23
Jasper_lee 0:b16d94660a33 24 #ifndef __SYSTEM_LPC8xx_H
Jasper_lee 0:b16d94660a33 25 #define __SYSTEM_LPC8xx_H
Jasper_lee 0:b16d94660a33 26
Jasper_lee 0:b16d94660a33 27 #ifdef __cplusplus
Jasper_lee 0:b16d94660a33 28 extern "C" {
Jasper_lee 0:b16d94660a33 29 #endif
Jasper_lee 0:b16d94660a33 30
Jasper_lee 0:b16d94660a33 31 #include <stdint.h>
Jasper_lee 0:b16d94660a33 32
Jasper_lee 0:b16d94660a33 33 extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
Jasper_lee 0:b16d94660a33 34 extern uint32_t MainClock; /*!< Main Clock Frequency */
Jasper_lee 0:b16d94660a33 35
Jasper_lee 0:b16d94660a33 36
Jasper_lee 0:b16d94660a33 37 /**
Jasper_lee 0:b16d94660a33 38 * Initialize the system
Jasper_lee 0:b16d94660a33 39 *
Jasper_lee 0:b16d94660a33 40 * @param none
Jasper_lee 0:b16d94660a33 41 * @return none
Jasper_lee 0:b16d94660a33 42 *
Jasper_lee 0:b16d94660a33 43 * @brief Setup the microcontroller system.
Jasper_lee 0:b16d94660a33 44 * Initialize the System and update the SystemCoreClock variable.
Jasper_lee 0:b16d94660a33 45 */
Jasper_lee 0:b16d94660a33 46 extern void SystemInit (void);
Jasper_lee 0:b16d94660a33 47
Jasper_lee 0:b16d94660a33 48 /**
Jasper_lee 0:b16d94660a33 49 * Update SystemCoreClock variable
Jasper_lee 0:b16d94660a33 50 *
Jasper_lee 0:b16d94660a33 51 * @param none
Jasper_lee 0:b16d94660a33 52 * @return none
Jasper_lee 0:b16d94660a33 53 *
Jasper_lee 0:b16d94660a33 54 * @brief Updates the SystemCoreClock with current core Clock
Jasper_lee 0:b16d94660a33 55 * retrieved from cpu registers.
Jasper_lee 0:b16d94660a33 56 */
Jasper_lee 0:b16d94660a33 57 extern void SystemCoreClockUpdate (void);
Jasper_lee 0:b16d94660a33 58
Jasper_lee 0:b16d94660a33 59 #ifdef __cplusplus
Jasper_lee 0:b16d94660a33 60 }
Jasper_lee 0:b16d94660a33 61 #endif
Jasper_lee 0:b16d94660a33 62
Jasper_lee 0:b16d94660a33 63 #endif /* __SYSTEM_LPC8xx_H */