diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/LPC55S26/system_LPC55S26.h')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/devices/LPC55S26/system_LPC55S26.h | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/LPC55S26/system_LPC55S26.h b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC55S26/system_LPC55S26.h new file mode 100644 index 000000000..ef275bc3b --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC55S26/system_LPC55S26.h | |||
@@ -0,0 +1,112 @@ | |||
1 | /* | ||
2 | ** ################################################################### | ||
3 | ** Processors: LPC55S26JBD100 | ||
4 | ** LPC55S26JBD64 | ||
5 | ** LPC55S26JEV98 | ||
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: b200418 | ||
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-2020 NXP | ||
23 | ** All rights reserved. | ||
24 | ** | ||
25 | ** SPDX-License-Identifier: BSD-3-Clause | ||
26 | ** | ||
27 | ** http: www.nxp.com | ||
28 | ** mail: [email protected] | ||
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 LPC55S26 | ||
41 | * @version 1.1 | ||
42 | * @date 2019-05-16 | ||
43 | * @brief Device specific configuration file for LPC55S26 (header file) | ||
44 | * | ||
45 | * Provides a system configuration function and a global variable that contains | ||
46 | * the system frequency. It configures the device and initializes the oscillator | ||
47 | * (PLL) that is part of the microcontroller device. | ||
48 | */ | ||
49 | |||
50 | #ifndef _SYSTEM_LPC55S26_H_ | ||
51 | #define _SYSTEM_LPC55S26_H_ /**< Symbol preventing repeated inclusion */ | ||
52 | |||
53 | #ifdef __cplusplus | ||
54 | extern "C" { | ||
55 | #endif | ||
56 | |||
57 | #include <stdint.h> | ||
58 | |||
59 | #define DEFAULT_SYSTEM_CLOCK 12000000u /* Default System clock value */ | ||
60 | #define CLK_RTC_32K_CLK 32768u /* RTC oscillator 32 kHz output (32k_clk */ | ||
61 | #define CLK_FRO_12MHZ 12000000u /* FRO 12 MHz (fro_12m) */ | ||
62 | #define CLK_FRO_48MHZ 48000000u /* FRO 48 MHz (fro_48m) */ | ||
63 | #define CLK_FRO_96MHZ 96000000u /* FRO 96 MHz (fro_96m) */ | ||
64 | #define CLK_CLK_IN 16000000u /* Default CLK_IN pin clock */ | ||
65 | |||
66 | |||
67 | /** | ||
68 | * @brief System clock frequency (core clock) | ||
69 | * | ||
70 | * The system clock frequency supplied to the SysTick timer and the processor | ||
71 | * core clock. This variable can be used by the user application to setup the | ||
72 | * SysTick timer or configure other parameters. It may also be used by debugger to | ||
73 | * query the frequency of the debug timer or configure the trace clock speed | ||
74 | * SystemCoreClock is initialized with a correct predefined value. | ||
75 | */ | ||
76 | extern uint32_t SystemCoreClock; | ||
77 | |||
78 | /** | ||
79 | * @brief Setup the microcontroller system. | ||
80 | * | ||
81 | * Typically this function configures the oscillator (PLL) that is part of the | ||
82 | * microcontroller device. For systems with variable clock speed it also updates | ||
83 | * the variable SystemCoreClock. SystemInit is called from startup_device file. | ||
84 | */ | ||
85 | void SystemInit (void); | ||
86 | |||
87 | /** | ||
88 | * @brief Updates the SystemCoreClock variable. | ||
89 | * | ||
90 | * It must be called whenever the core clock is changed during program | ||
91 | * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates | ||
92 | * the current core clock. | ||
93 | */ | ||
94 | void SystemCoreClockUpdate (void); | ||
95 | |||
96 | /** | ||
97 | * @brief SystemInit function hook. | ||
98 | * | ||
99 | * This weak function allows to call specific initialization code during the | ||
100 | * SystemInit() execution.This can be used when an application specific code needs | ||
101 | * to be called as close to the reset entry as possible (for example the Multicore | ||
102 | * Manager MCMGR_EarlyInit() function call). | ||
103 | * NOTE: No global r/w variables can be used in this hook function because the | ||
104 | * initialization of these variables happens after this function. | ||
105 | */ | ||
106 | void SystemInitHook (void); | ||
107 | |||
108 | #ifdef __cplusplus | ||
109 | } | ||
110 | #endif | ||
111 | |||
112 | #endif /* _SYSTEM_LPC55S26_H_ */ | ||