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