mbed library sources
Fork of mbed-src by
targets/cmsis/TARGET_NXP/TARGET_LPC15XX/system_LPC15xx.h@636:b0d178e9fa10, 2016-07-07 (annotated)
- Committer:
- lzbpli
- Date:
- Thu Jul 07 06:48:59 2016 +0000
- Revision:
- 636:b0d178e9fa10
- Parent:
- 103:9b881da47c92
l053
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 103:9b881da47c92 | 1 | /**************************************************************************//** |
mbed_official | 103:9b881da47c92 | 2 | * @file system_LPC15xx.h |
mbed_official | 103:9b881da47c92 | 3 | * @brief CMSIS Cortex-M3 Device System Header File for |
mbed_official | 103:9b881da47c92 | 4 | * NXP LPC15xx Device Series |
mbed_official | 103:9b881da47c92 | 5 | * @version V1.00 |
mbed_official | 103:9b881da47c92 | 6 | * @date 19. July 2013 |
mbed_official | 103:9b881da47c92 | 7 | * |
mbed_official | 103:9b881da47c92 | 8 | * @note |
mbed_official | 103:9b881da47c92 | 9 | * Copyright (C) 2013 ARM Limited. All rights reserved. |
mbed_official | 103:9b881da47c92 | 10 | * |
mbed_official | 103:9b881da47c92 | 11 | * @par |
mbed_official | 103:9b881da47c92 | 12 | * ARM Limited (ARM) is supplying this software for use with Cortex-M |
mbed_official | 103:9b881da47c92 | 13 | * processor based microcontrollers. This file can be freely distributed |
mbed_official | 103:9b881da47c92 | 14 | * within development tools that are supporting such ARM based processors. |
mbed_official | 103:9b881da47c92 | 15 | * |
mbed_official | 103:9b881da47c92 | 16 | * @par |
mbed_official | 103:9b881da47c92 | 17 | * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED |
mbed_official | 103:9b881da47c92 | 18 | * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF |
mbed_official | 103:9b881da47c92 | 19 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. |
mbed_official | 103:9b881da47c92 | 20 | * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR |
mbed_official | 103:9b881da47c92 | 21 | * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. |
mbed_official | 103:9b881da47c92 | 22 | * |
mbed_official | 103:9b881da47c92 | 23 | ******************************************************************************/ |
mbed_official | 103:9b881da47c92 | 24 | |
mbed_official | 103:9b881da47c92 | 25 | |
mbed_official | 103:9b881da47c92 | 26 | #ifndef __SYSTEM_LPC15xx_H |
mbed_official | 103:9b881da47c92 | 27 | #define __SYSTEM_LPC15xx_H |
mbed_official | 103:9b881da47c92 | 28 | |
mbed_official | 103:9b881da47c92 | 29 | #ifdef __cplusplus |
mbed_official | 103:9b881da47c92 | 30 | extern "C" { |
mbed_official | 103:9b881da47c92 | 31 | #endif |
mbed_official | 103:9b881da47c92 | 32 | |
mbed_official | 103:9b881da47c92 | 33 | #include <stdint.h> |
mbed_official | 103:9b881da47c92 | 34 | |
mbed_official | 103:9b881da47c92 | 35 | /** @addtogroup LPC15xx_System |
mbed_official | 103:9b881da47c92 | 36 | * @{ |
mbed_official | 103:9b881da47c92 | 37 | */ |
mbed_official | 103:9b881da47c92 | 38 | |
mbed_official | 103:9b881da47c92 | 39 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ |
mbed_official | 103:9b881da47c92 | 40 | |
mbed_official | 103:9b881da47c92 | 41 | |
mbed_official | 103:9b881da47c92 | 42 | /** |
mbed_official | 103:9b881da47c92 | 43 | * Initialize the system |
mbed_official | 103:9b881da47c92 | 44 | * |
mbed_official | 103:9b881da47c92 | 45 | * @param none |
mbed_official | 103:9b881da47c92 | 46 | * @return none |
mbed_official | 103:9b881da47c92 | 47 | * |
mbed_official | 103:9b881da47c92 | 48 | * @brief Setup the microcontroller system. |
mbed_official | 103:9b881da47c92 | 49 | * Initialize the System. |
mbed_official | 103:9b881da47c92 | 50 | */ |
mbed_official | 103:9b881da47c92 | 51 | extern void SystemInit (void); |
mbed_official | 103:9b881da47c92 | 52 | |
mbed_official | 103:9b881da47c92 | 53 | /** |
mbed_official | 103:9b881da47c92 | 54 | * Update SystemCoreClock variable |
mbed_official | 103:9b881da47c92 | 55 | * |
mbed_official | 103:9b881da47c92 | 56 | * @param none |
mbed_official | 103:9b881da47c92 | 57 | * @return none |
mbed_official | 103:9b881da47c92 | 58 | * |
mbed_official | 103:9b881da47c92 | 59 | * @brief Updates the SystemCoreClock with current core Clock |
mbed_official | 103:9b881da47c92 | 60 | * retrieved from cpu registers. |
mbed_official | 103:9b881da47c92 | 61 | */ |
mbed_official | 103:9b881da47c92 | 62 | extern void SystemCoreClockUpdate (void); |
mbed_official | 103:9b881da47c92 | 63 | |
mbed_official | 103:9b881da47c92 | 64 | #ifdef __cplusplus |
mbed_official | 103:9b881da47c92 | 65 | } |
mbed_official | 103:9b881da47c92 | 66 | #endif |
mbed_official | 103:9b881da47c92 | 67 | |
mbed_official | 103:9b881da47c92 | 68 | /** |
mbed_official | 103:9b881da47c92 | 69 | * @} |
mbed_official | 103:9b881da47c92 | 70 | */ |
mbed_official | 103:9b881da47c92 | 71 | |
mbed_official | 103:9b881da47c92 | 72 | #endif /* __SYSTEM_LPC15xx_H */ |