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