1 /* 2 ** ################################################################### 3 ** Processors: LPC55S66JBD100_cm33_core1 4 ** LPC55S66JBD64_cm33_core1 5 ** LPC55S66JEV98_cm33_core1 6 ** 7 ** Compilers: GNU C Compiler 8 ** IAR ANSI C/C++ Compiler for ARM 9 ** Keil ARM C/C++ Compiler 10 ** MCUXpresso Compiler 11 ** 12 ** Reference manual: LPC55S6x/LPC55S2x/LPC552x User manual(UM11126) Rev.1.3 16 May 2019 13 ** Version: rev. 1.1, 2019-05-16 14 ** Build: b220117 15 ** 16 ** Abstract: 17 ** Provides a system configuration function and a global variable that 18 ** contains the system frequency. It configures the device and initializes 19 ** the oscillator (PLL) that is part of the microcontroller device. 20 ** 21 ** Copyright 2016 Freescale Semiconductor, Inc. 22 ** Copyright 2016-2022 NXP 23 ** All rights reserved. 24 ** 25 ** SPDX-License-Identifier: BSD-3-Clause 26 ** 27 ** http: www.nxp.com 28 ** mail: support@nxp.com 29 ** 30 ** Revisions: 31 ** - rev. 1.0 (2018-08-22) 32 ** Initial version based on v0.2UM 33 ** - rev. 1.1 (2019-05-16) 34 ** Initial A1 version based on v1.3UM 35 ** 36 ** ################################################################### 37 */ 38 39 /*! 40 * @file LPC55S66_cm33_core1 41 * @version 1.1 42 * @date 2019-05-16 43 * @brief Device specific configuration file for LPC55S66_cm33_core1 (header 44 * file) 45 * 46 * Provides a system configuration function and a global variable that contains 47 * the system frequency. It configures the device and initializes the oscillator 48 * (PLL) that is part of the microcontroller device. 49 */ 50 51 #ifndef _SYSTEM_LPC55S66_cm33_core1_H_ 52 #define _SYSTEM_LPC55S66_cm33_core1_H_ /**< Symbol preventing repeated inclusion */ 53 54 #ifdef __cplusplus 55 extern "C" { 56 #endif 57 58 #include <stdint.h> 59 60 #define DEFAULT_SYSTEM_CLOCK 12000000u /* Default System clock value */ 61 #define CLK_RTC_32K_CLK 32768u /* RTC oscillator 32 kHz output (32k_clk */ 62 #define CLK_FRO_12MHZ 12000000u /* FRO 12 MHz (fro_12m) */ 63 #define CLK_FRO_48MHZ 48000000u /* FRO 48 MHz (fro_48m) */ 64 #define CLK_FRO_96MHZ 96000000u /* FRO 96 MHz (fro_96m) */ 65 #define CLK_CLK_IN 16000000u /* Default CLK_IN pin clock */ 66 67 68 /** 69 * @brief System clock frequency (core clock) 70 * 71 * The system clock frequency supplied to the SysTick timer and the processor 72 * core clock. This variable can be used by the user application to setup the 73 * SysTick timer or configure other parameters. It may also be used by debugger to 74 * query the frequency of the debug timer or configure the trace clock speed 75 * SystemCoreClock is initialized with a correct predefined value. 76 */ 77 extern uint32_t SystemCoreClock; 78 79 /** 80 * @brief Setup the microcontroller system. 81 * 82 * Typically this function configures the oscillator (PLL) that is part of the 83 * microcontroller device. For systems with variable clock speed it also updates 84 * the variable SystemCoreClock. SystemInit is called from startup_device file. 85 */ 86 void SystemInit (void); 87 88 /** 89 * @brief Updates the SystemCoreClock variable. 90 * 91 * It must be called whenever the core clock is changed during program 92 * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates 93 * the current core clock. 94 */ 95 void SystemCoreClockUpdate (void); 96 97 /** 98 * @brief SystemInit function hook. 99 * 100 * This weak function allows to call specific initialization code during the 101 * SystemInit() execution.This can be used when an application specific code needs 102 * to be called as close to the reset entry as possible (for example the Multicore 103 * Manager MCMGR_EarlyInit() function call). 104 * NOTE: No global r/w variables can be used in this hook function because the 105 * initialization of these variables happens after this function. 106 */ 107 void SystemInitHook (void); 108 109 #ifdef __cplusplus 110 } 111 #endif 112 113 #endif /* _SYSTEM_LPC55S66_cm33_core1_H_ */ 114