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