RTEMS 6.1-rc1
system_MIMXRT1166_cm7.h
1/*
2** ###################################################################
3** Processors: MIMXRT1166CVM5A_cm7
4** MIMXRT1166DVM6A_cm7
5** MIMXRT1166XVM5A_cm7
6**
7** Compilers: Freescale C/C++ for Embedded ARM
8** GNU C Compiler
9** IAR ANSI C/C++ Compiler for ARM
10** Keil ARM C/C++ Compiler
11** MCUXpresso Compiler
12**
13** Reference manual: IMXRT1160RM, Rev 0, 03/2021
14** Version: rev. 0.1, 2020-12-29
15** Build: b210615
16**
17** Abstract:
18** Provides a system configuration function and a global variable that
19** contains the system frequency. It configures the device and initializes
20** the oscillator (PLL) that is part of the microcontroller device.
21**
22** Copyright 2016 Freescale Semiconductor, Inc.
23** Copyright 2016-2021 NXP
24** All rights reserved.
25**
26** SPDX-License-Identifier: BSD-3-Clause
27**
28** http: www.nxp.com
29** mail: support@nxp.com
30**
31** Revisions:
32** - rev. 0.1 (2020-12-29)
33** Initial version.
34**
35** ###################################################################
36*/
37
49#ifndef _SYSTEM_MIMXRT1166_cm7_H_
50#define _SYSTEM_MIMXRT1166_cm7_H_
52#ifdef __cplusplus
53extern "C" {
54#endif
55
56#include <stdint.h>
57
58
59#ifndef DISABLE_WDOG
60 #define DISABLE_WDOG 1
61#endif
62
63/* Define clock source values */
64
65#define CPU_XTAL_CLK_HZ 24000000UL /* Value of the external crystal or oscillator clock frequency in Hz */
66
67#define CPU_CLK1_HZ 0UL /* Value of the CLK1 (select the CLK1_N/CLK1_P as source) frequency in Hz */
68 /* If CLOCK1_P,CLOCK1_N is choose as the pll bypass clock source, please implement the CLKPN_FREQ define, otherwise 0 will be returned. */
69
70#define DEFAULT_SYSTEM_CLOCK 528000000UL /* Default System clock value */
71
72
82extern uint32_t SystemCoreClock;
83
91void SystemInit (void);
92
100void SystemCoreClockUpdate (void);
101
112void SystemInitHook (void);
113
114#ifdef __cplusplus
115}
116#endif
117
118#endif /* _SYSTEM_MIMXRT1166_cm7_H_ */
void SystemInit(void)
Setup the microcontroller system.
Definition: system_samv71.c:82
void SystemCoreClockUpdate(void)
Updates the SystemCoreClock variable.
Definition: system_samv71.c:158
uint32_t SystemCoreClock
System clock frequency (core clock)
Definition: system_samv71.c:69