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