diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT685S/system_MIMXRT685S_cm33.h')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT685S/system_MIMXRT685S_cm33.h | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT685S/system_MIMXRT685S_cm33.h b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT685S/system_MIMXRT685S_cm33.h new file mode 100644 index 000000000..3393fe49b --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT685S/system_MIMXRT685S_cm33.h | |||
@@ -0,0 +1,119 @@ | |||
1 | /* | ||
2 | ** ################################################################### | ||
3 | ** Processors: MIMXRT685SFAWBR_cm33 | ||
4 | ** MIMXRT685SFFOB_cm33 | ||
5 | ** MIMXRT685SFVKB_cm33 | ||
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: MIMXRT685 User manual Rev. 0.95 11 November 2019 | ||
13 | ** Version: rev. 2.0, 2019-11-12 | ||
14 | ** Build: b201016 | ||
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-06-19) | ||
32 | ** Initial version. | ||
33 | ** - rev. 2.0 (2019-11-12) | ||
34 | ** Base on rev 0.95 RM (B0 Header) | ||
35 | ** | ||
36 | ** ################################################################### | ||
37 | */ | ||
38 | |||
39 | /*! | ||
40 | * @file MIMXRT685S_cm33 | ||
41 | * @version 2.0 | ||
42 | * @date 2019-11-12 | ||
43 | * @brief Device specific configuration file for MIMXRT685S_cm33 (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_MIMXRT685S_cm33_H_ | ||
51 | #define _SYSTEM_MIMXRT685S_cm33_H_ /**< Symbol preventing repeated inclusion */ | ||
52 | |||
53 | #ifdef __cplusplus | ||
54 | extern "C" { | ||
55 | #endif | ||
56 | |||
57 | #include <stdint.h> | ||
58 | |||
59 | |||
60 | #define DEFAULT_SYSTEM_CLOCK 12000000u /* Default System clock value */ | ||
61 | #ifndef CLK_XTAL_OSC_CLK | ||
62 | #define CLK_XTAL_OSC_CLK 24000000u /* Default XTAL OSC clock */ | ||
63 | #endif | ||
64 | #define CLK_RTC_32K_CLK 32768u /* RTC oscillator 32 kHz (32k_clk) */ | ||
65 | #define CLK_LPOSC_1MHZ 1000000u /* Low power oscillator 1 MHz (1m_lposc) */ | ||
66 | #define CLK_FRO_16MHZ 16000000u /* Slow FRO 16 MHz (fro_16m) */ | ||
67 | #define CLK_FRO_48MHZ 48000000u /* Fast FRO 48 MHz (fro_48m) */ | ||
68 | #define CLK_FRO_60MHZ 60000000u /* Fast FRO 60 MHz (fro_60m) */ | ||
69 | #ifndef CLK_EXT_CLKIN | ||
70 | #define CLK_EXT_CLKIN 0u /* Default external CLKIN pin clock */ | ||
71 | #endif | ||
72 | |||
73 | |||
74 | /** | ||
75 | * @brief System clock frequency (core clock) | ||
76 | * | ||
77 | * The system clock frequency supplied to the SysTick timer and the processor | ||
78 | * core clock. This variable can be used by the user application to setup the | ||
79 | * SysTick timer or configure other parameters. It may also be used by debugger to | ||
80 | * query the frequency of the debug timer or configure the trace clock speed | ||
81 | * SystemCoreClock is initialized with a correct predefined value. | ||
82 | */ | ||
83 | extern uint32_t SystemCoreClock; | ||
84 | |||
85 | /** | ||
86 | * @brief Setup the microcontroller system. | ||
87 | * | ||
88 | * Typically this function configures the oscillator (PLL) that is part of the | ||
89 | * microcontroller device. For systems with variable clock speed it also updates | ||
90 | * the variable SystemCoreClock. SystemInit is called from startup_device file. | ||
91 | */ | ||
92 | void SystemInit (void); | ||
93 | |||
94 | /** | ||
95 | * @brief Updates the SystemCoreClock variable. | ||
96 | * | ||
97 | * It must be called whenever the core clock is changed during program | ||
98 | * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates | ||
99 | * the current core clock. | ||
100 | */ | ||
101 | void SystemCoreClockUpdate (void); | ||
102 | |||
103 | /** | ||
104 | * @brief SystemInit function hook. | ||
105 | * | ||
106 | * This weak function allows to call specific initialization code during the | ||
107 | * SystemInit() execution.This can be used when an application specific code needs | ||
108 | * to be called as close to the reset entry as possible (for example the Multicore | ||
109 | * Manager MCMGR_EarlyInit() function call). | ||
110 | * NOTE: No global r/w variables can be used in this hook function because the | ||
111 | * initialization of these variables happens after this function. | ||
112 | */ | ||
113 | void SystemInitHook (void); | ||
114 | |||
115 | #ifdef __cplusplus | ||
116 | } | ||
117 | #endif | ||
118 | |||
119 | #endif /* _SYSTEM_MIMXRT685S_cm33_H_ */ | ||