mbed library sources
Fork of mbed-src by
targets/cmsis/TARGET_NXP/TARGET_LPC81X/system_LPC8xx.h@636:b0d178e9fa10, 2016-07-07 (annotated)
- Committer:
- lzbpli
- Date:
- Thu Jul 07 06:48:59 2016 +0000
- Revision:
- 636:b0d178e9fa10
- Parent:
- 458:84b15e04105a
l053
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 | 458:84b15e04105a | 33 | extern uint32_t MainClock; /*!< Main Clock Frequency */ |
mbed_official | 46:bebbbd80dd87 | 34 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ |
mbed_official | 46:bebbbd80dd87 | 35 | |
mbed_official | 46:bebbbd80dd87 | 36 | |
mbed_official | 46:bebbbd80dd87 | 37 | /** |
mbed_official | 46:bebbbd80dd87 | 38 | * Initialize the system |
mbed_official | 46:bebbbd80dd87 | 39 | * |
mbed_official | 46:bebbbd80dd87 | 40 | * @param none |
mbed_official | 46:bebbbd80dd87 | 41 | * @return none |
mbed_official | 46:bebbbd80dd87 | 42 | * |
mbed_official | 46:bebbbd80dd87 | 43 | * @brief Setup the microcontroller system. |
mbed_official | 46:bebbbd80dd87 | 44 | * Initialize the System and update the SystemCoreClock variable. |
mbed_official | 46:bebbbd80dd87 | 45 | */ |
mbed_official | 46:bebbbd80dd87 | 46 | extern void SystemInit (void); |
mbed_official | 46:bebbbd80dd87 | 47 | |
mbed_official | 46:bebbbd80dd87 | 48 | /** |
mbed_official | 46:bebbbd80dd87 | 49 | * Update SystemCoreClock variable |
mbed_official | 46:bebbbd80dd87 | 50 | * |
mbed_official | 46:bebbbd80dd87 | 51 | * @param none |
mbed_official | 46:bebbbd80dd87 | 52 | * @return none |
mbed_official | 46:bebbbd80dd87 | 53 | * |
mbed_official | 46:bebbbd80dd87 | 54 | * @brief Updates the SystemCoreClock with current core Clock |
mbed_official | 46:bebbbd80dd87 | 55 | * retrieved from cpu registers. |
mbed_official | 46:bebbbd80dd87 | 56 | */ |
mbed_official | 46:bebbbd80dd87 | 57 | extern void SystemCoreClockUpdate (void); |
mbed_official | 46:bebbbd80dd87 | 58 | |
mbed_official | 46:bebbbd80dd87 | 59 | #ifdef __cplusplus |
mbed_official | 46:bebbbd80dd87 | 60 | } |
mbed_official | 46:bebbbd80dd87 | 61 | #endif |
mbed_official | 46:bebbbd80dd87 | 62 | |
mbed_official | 46:bebbbd80dd87 | 63 | #endif /* __SYSTEM_LPC8xx_H */ |