aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN5/system_MIMX8MN5_cm7.h
diff options
context:
space:
mode:
authorAkshay <[email protected]>2022-04-10 12:13:40 +0100
committerAkshay <[email protected]>2022-04-10 12:13:40 +0100
commitdc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch)
tree4ccb8fa5886b66fa9d480edef74236c27f035e16 /lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN5/system_MIMX8MN5_cm7.h
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN5/system_MIMX8MN5_cm7.h')
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN5/system_MIMX8MN5_cm7.h111
1 files changed, 111 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN5/system_MIMX8MN5_cm7.h b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN5/system_MIMX8MN5_cm7.h
new file mode 100644
index 000000000..f2a458302
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN5/system_MIMX8MN5_cm7.h
@@ -0,0 +1,111 @@
1/*
2** ###################################################################
3** Processors: MIMX8MN5CVTIZ
4** MIMX8MN5DVTJZ
5**
6** Compilers: GNU C Compiler
7** IAR ANSI C/C++ Compiler for ARM
8** Keil ARM C/C++ Compiler
9**
10** Reference manual: MX8MNRM, Rev.A, 04/2019
11** Version: rev. 2.0, 2019-09-23
12** Build: b190830
13**
14** Abstract:
15** Provides a system configuration function and a global variable that
16** contains the system frequency. It configures the device and initializes
17** the oscillator (PLL) that is part of the microcontroller device.
18**
19** Copyright 2016 Freescale Semiconductor, Inc.
20** Copyright 2016-2019 NXP
21** All rights reserved.
22**
23** SPDX-License-Identifier: BSD-3-Clause
24**
25** http: www.nxp.com
26** mail: [email protected]
27**
28** Revisions:
29** - rev. 1.0 (2019-04-22)
30** Initial version.
31** - rev. 2.0 (2019-09-23)
32** Rev.B Header RFP
33**
34** ###################################################################
35*/
36
37/*!
38 * @file MIMX8MN5_cm7
39 * @version 2.0
40 * @date 2019-09-23
41 * @brief Device specific configuration file for MIMX8MN5_cm7 (header file)
42 *
43 * Provides a system configuration function and a global variable that contains
44 * the system frequency. It configures the device and initializes the oscillator
45 * (PLL) that is part of the microcontroller device.
46 */
47
48#ifndef _SYSTEM_MIMX8MN5_cm7_H_
49#define _SYSTEM_MIMX8MN5_cm7_H_ /**< Symbol preventing repeated inclusion */
50
51#ifdef __cplusplus
52extern "C" {
53#endif
54
55#include <stdint.h>
56
57/* i.MX8MN Definitions */
58#ifndef DISABLE_WDOG
59#define DISABLE_WDOG 1
60#endif
61/* Define clock source values */
62#define CPU_XTAL_SOSC_CLK_24MHZ 24000000u /* Value of the external System Oscillator Clock(SOSC) frequency in Hz */
63#define CLK_PAD_CLK 0u /* The value could be changed according to the actual usage */
64#define DEFAULT_SYSTEM_CLOCK 600000000u /* Default System clock value */
65
66/**
67 * @brief System clock frequency (core clock)
68 *
69 * The system clock frequency supplied to the SysTick timer and the processor
70 * core clock. This variable can be used by the user application to setup the
71 * SysTick timer or configure other parameters. It may also be used by debugger to
72 * query the frequency of the debug timer or configure the trace clock speed
73 * SystemCoreClock is initialized with a correct predefined value.
74 */
75extern uint32_t SystemCoreClock;
76
77/**
78 * @brief Setup the microcontroller system.
79 *
80 * Typically this function configures the oscillator (PLL) that is part of the
81 * microcontroller device. For systems with variable clock speed it also updates
82 * the variable SystemCoreClock. SystemInit is called from startup_device file.
83 */
84void SystemInit(void);
85
86/**
87 * @brief Updates the SystemCoreClock variable.
88 *
89 * It must be called whenever the core clock is changed during program
90 * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates
91 * the current core clock.
92 */
93void SystemCoreClockUpdate(void);
94
95/**
96 * @brief SystemInit function hook.
97 *
98 * This weak function allows to call specific initialization code during the
99 * SystemInit() execution.This can be used when an application specific code needs
100 * to be called as close to the reset entry as possible (for example the Multicore
101 * Manager MCMGR_EarlyInit() function call).
102 * NOTE: No global r/w variables can be used in this hook function because the
103 * initialization of these variables happens after this function.
104 */
105void SystemInitHook(void);
106
107#ifdef __cplusplus
108}
109#endif
110
111#endif /* _SYSTEM_MIMX8MN5_cm7_H_ */