MCUX CLNS
MCUX Crypto Library Normal Secure
Loading...
Searching...
No Matches
system_MIMXRT798S_cm33_core0.h
1/*
2** ###################################################################
3** Processors: MIMXRT798SGAWAR_cm33_core0
4** MIMXRT798SGFOA_cm33_core0
5**
6** Compilers: GNU C Compiler
7** IAR ANSI C/C++ Compiler for ARM
8** Keil ARM C/C++ Compiler
9** MCUXpresso Compiler
10**
11** Reference manual: iMXRT700RM Rev.1, 06/2023
12** Version: rev. 1.0, 2022-08-01
13** Build: b231008
14**
15** Abstract:
16** Provides a system configuration function and a global variable that
17** contains the system frequency. It configures the device and initializes
18** the oscillator (PLL) that is part of the microcontroller device.
19**
20** Copyright 2016 Freescale Semiconductor, Inc.
21** Copyright 2016-2023 NXP
22** SPDX-License-Identifier: BSD-3-Clause
23**
24** http: www.nxp.com
25** mail: support@nxp.com
26**
27** Revisions:
28** - rev. 1.0 (2022-08-01)
29** Initial version.
30**
31** ###################################################################
32*/
33
45
46#ifndef _SYSTEM_MIMXRT798S_cm33_core0_H_
47#define _SYSTEM_MIMXRT798S_cm33_core0_H_
48
49#ifdef __cplusplus
50extern "C" {
51#endif
52
53#include <stdint.h>
54
55#define DEFAULT_SYSTEM_CLOCK 12000000u /* Default System clock value */
56#ifndef CLK_XTAL_OSC_CLK
57#define CLK_XTAL_OSC_CLK 24000000u /* Default XTAL OSC clock */
58#endif
59#ifndef CLK_EXT_CLKIN
60#define CLK_EXT_CLKIN 0u /* Default external CLKIN pin clock */
61#endif
62#define CLK_OSC_CLK \
63 ((CLKCTL2->SYSOSCBYPASS == 0U) ? CLK_XTAL_OSC_CLK : ((CLKCTL2->SYSOSCBYPASS == 1U) ? CLK_EXT_CLKIN : 0U))
64
65#define CLK_RTC_32K_CLK 32768u /* RTC oscillator 32 kHz (32k_clk) */
66#define CLK_LPOSC_1MHZ 1000000u /* Low power oscillator 1 MHz (1m_lposc) */
67#define CLK_FRO1_MAX_CLK 192000000u /* FRO1 max clock frequency (fro1) */
68
69#define STARTUP_XSPI_CACHE_POLICY_NON_CACHEABLE 0U
70#define STARTUP_XSPI_CACHE_POLICY_WRITE_TRHOUGH 1U
71#define STARTUP_XSPI_CACHE_POLICY_WRITE_BACK 2U
72
73#ifndef STARTUP_XSPI0_CACHE_POLICY
74#define STARTUP_XSPI0_CACHE_POLICY STARTUP_XSPI_CACHE_POLICY_WRITE_BACK
75#endif
76
77#ifndef STARTUP_XSPI1_CACHE_POLICY
78#define STARTUP_XSPI1_CACHE_POLICY STARTUP_XSPI_CACHE_POLICY_WRITE_BACK
79#endif
80
90extern uint32_t SystemCoreClock;
91
99void SystemInit(void);
100
108void SystemCoreClockUpdate(void);
109
120void SystemInitHook(void);
121
122#ifdef __cplusplus
123}
124#endif
125
126#endif /* _SYSTEM_MIMXRT798S_cm33_core0_H_ */