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