RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
bsps
arm
imxrt
mcux-sdk
devices
MIMXRT1052
system_MIMXRT1052.h
1
/*
2
** ###################################################################
3
** Processors: MIMXRT1052CVJ5B
4
** MIMXRT1052CVL5B
5
** MIMXRT1052DVJ6B
6
** MIMXRT1052DVL6B
7
**
8
** Compilers: Freescale C/C++ for Embedded ARM
9
** GNU C Compiler
10
** IAR ANSI C/C++ Compiler for ARM
11
** Keil ARM C/C++ Compiler
12
** MCUXpresso Compiler
13
**
14
** Reference manual: IMXRT1050RM Rev.5, 07/2021 | IMXRT1050SRM Rev.2
15
** Version: rev. 1.4, 2021-08-10
16
** Build: b210811
17
**
18
** Abstract:
19
** Provides a system configuration function and a global variable that
20
** contains the system frequency. It configures the device and initializes
21
** the oscillator (PLL) that is part of the microcontroller device.
22
**
23
** Copyright 2016 Freescale Semiconductor, Inc.
24
** Copyright 2016-2021 NXP
25
** All rights reserved.
26
**
27
** SPDX-License-Identifier: BSD-3-Clause
28
**
29
** http: www.nxp.com
30
** mail: support@nxp.com
31
**
32
** Revisions:
33
** - rev. 0.1 (2017-01-10)
34
** Initial version.
35
** - rev. 1.0 (2018-09-21)
36
** Update interrupt vector table and dma request source.
37
** Update register BEE_ADDR_OFFSET1's bitfield name to ADDR_OFFSET1.
38
** Split GPIO_COMBINED_IRQS to GPIO_COMBINED_LOW_IRQS and GPIO_COMBINED_HIGH_IRQS.
39
** - rev. 1.1 (2018-11-16)
40
** Update header files to align with IMXRT1050RM Rev.1.
41
** - rev. 1.2 (2018-11-27)
42
** Update header files to align with IMXRT1050RM Rev.2.1.
43
** - rev. 1.3 (2019-04-29)
44
** Add SET/CLR/TOG register group to register CTRL, STAT, CHANNELCTRL, CH0STAT, CH0OPTS, CH1STAT, CH1OPTS, CH2STAT, CH2OPTS, CH3STAT, CH3OPTS of DCP module.
45
** - rev. 1.4 (2021-08-10)
46
** Update header files to align with IMXRT1050RM Rev.5.
47
**
48
** ###################################################################
49
*/
50
61
62
#ifndef _SYSTEM_MIMXRT1052_H_
63
#define _SYSTEM_MIMXRT1052_H_
64
65
#ifdef __cplusplus
66
extern
"C"
{
67
#endif
68
69
#include <stdint.h>
70
71
72
#ifndef DISABLE_WDOG
73
#define DISABLE_WDOG 1
74
#endif
75
76
/* Define clock source values */
77
78
#define CPU_XTAL_CLK_HZ 24000000UL
/* Value of the external crystal or oscillator clock frequency in Hz */
79
80
#define CPU_CLK1_HZ 0UL
/* Value of the CLK1 (select the CLK1_N/CLK1_P as source) frequency in Hz */
81
/* If CLOCK1_P,CLOCK1_N is choose as the pll bypass clock source, please implement the CLKPN_FREQ define, otherwise 0 will be returned. */
82
83
#define DEFAULT_SYSTEM_CLOCK 528000000UL
/* Default System clock value */
84
85
95
extern
uint32_t SystemCoreClock;
96
104
void
SystemInit
(
void
);
105
113
void
SystemCoreClockUpdate
(
void
);
114
125
void
SystemInitHook (
void
);
126
127
#ifdef __cplusplus
128
}
129
#endif
130
131
#endif
/* _SYSTEM_MIMXRT1052_H_ */
SystemInit
void SystemInit(void)
Setup the microcontroller system. Initialize the System and update the SystemFrequency variable.
Definition
system_samv71.c:82
SystemCoreClockUpdate
void SystemCoreClockUpdate(void)
Update SystemCoreClock variable according to Clock Register Values. The SystemCoreClock variable cont...
Definition
system_samv71.c:158
Generated by
1.18.0