change some io settings for TWR-K22F-120M
TARGET_LPC1768/system_LPC17xx.h@0:b16d94660a33, 2014-12-23 (annotated)
- 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?
User | Revision | Line number | New contents of line |
---|---|---|---|
Jasper_lee | 0:b16d94660a33 | 1 | /****************************************************************************** |
Jasper_lee | 0:b16d94660a33 | 2 | * @file: system_LPC17xx.h |
Jasper_lee | 0:b16d94660a33 | 3 | * @purpose: CMSIS Cortex-M3 Device Peripheral Access Layer Header File |
Jasper_lee | 0:b16d94660a33 | 4 | * for the NXP LPC17xx Device Series |
Jasper_lee | 0:b16d94660a33 | 5 | * @version: V1.02 |
Jasper_lee | 0:b16d94660a33 | 6 | * @date: 27. July 2009 |
Jasper_lee | 0:b16d94660a33 | 7 | *---------------------------------------------------------------------------- |
Jasper_lee | 0:b16d94660a33 | 8 | * |
Jasper_lee | 0:b16d94660a33 | 9 | * Copyright (C) 2009 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-M3 |
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_LPC17xx_H |
Jasper_lee | 0:b16d94660a33 | 25 | #define __SYSTEM_LPC17xx_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 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ |
Jasper_lee | 0:b16d94660a33 | 32 | |
Jasper_lee | 0:b16d94660a33 | 33 | |
Jasper_lee | 0:b16d94660a33 | 34 | /** |
Jasper_lee | 0:b16d94660a33 | 35 | * Initialize the system |
Jasper_lee | 0:b16d94660a33 | 36 | * |
Jasper_lee | 0:b16d94660a33 | 37 | * @param none |
Jasper_lee | 0:b16d94660a33 | 38 | * @return none |
Jasper_lee | 0:b16d94660a33 | 39 | * |
Jasper_lee | 0:b16d94660a33 | 40 | * @brief Setup the microcontroller system. |
Jasper_lee | 0:b16d94660a33 | 41 | * Initialize the System and update the SystemCoreClock variable. |
Jasper_lee | 0:b16d94660a33 | 42 | */ |
Jasper_lee | 0:b16d94660a33 | 43 | extern void SystemInit (void); |
Jasper_lee | 0:b16d94660a33 | 44 | |
Jasper_lee | 0:b16d94660a33 | 45 | /** |
Jasper_lee | 0:b16d94660a33 | 46 | * Update SystemCoreClock variable |
Jasper_lee | 0:b16d94660a33 | 47 | * |
Jasper_lee | 0:b16d94660a33 | 48 | * @param none |
Jasper_lee | 0:b16d94660a33 | 49 | * @return none |
Jasper_lee | 0:b16d94660a33 | 50 | * |
Jasper_lee | 0:b16d94660a33 | 51 | * @brief Updates the SystemCoreClock with current core Clock |
Jasper_lee | 0:b16d94660a33 | 52 | * retrieved from cpu registers. |
Jasper_lee | 0:b16d94660a33 | 53 | */ |
Jasper_lee | 0:b16d94660a33 | 54 | extern void SystemCoreClockUpdate (void); |
Jasper_lee | 0:b16d94660a33 | 55 | |
Jasper_lee | 0:b16d94660a33 | 56 | #ifdef __cplusplus |
Jasper_lee | 0:b16d94660a33 | 57 | } |
Jasper_lee | 0:b16d94660a33 | 58 | #endif |
Jasper_lee | 0:b16d94660a33 | 59 | |
Jasper_lee | 0:b16d94660a33 | 60 | #endif /* __SYSTEM_LPC17xx_H */ |