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