mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Committer:
bogdanm
Date:
Thu Oct 01 15:25:22 2015 +0300
Revision:
0:9b334a45a8ff
Child:
144:ef7eb2e8f9f7
Initial commit on mbed-dev

Replaces mbed-src (now inactive)

Who changed what in which revision?

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