1 /* 2 ** ################################################################### 3 ** Processors: MIMXRT1062CVJ5A 4 ** MIMXRT1062CVJ5B 5 ** MIMXRT1062CVL5A 6 ** MIMXRT1062CVL5B 7 ** MIMXRT1062DVJ6A 8 ** MIMXRT1062DVJ6B 9 ** MIMXRT1062DVL6A 10 ** MIMXRT1062DVL6B 11 ** MIMXRT1062DVN6B 12 ** MIMXRT1062XVN5B 13 ** 14 ** Compilers: Freescale C/C++ for Embedded ARM 15 ** GNU C Compiler 16 ** IAR ANSI C/C++ Compiler for ARM 17 ** Keil ARM C/C++ Compiler 18 ** MCUXpresso Compiler 19 ** 20 ** Reference manual: IMXRT1060RM Rev.3, 07/2021 | IMXRT106XSRM Rev.0 21 ** Version: rev. 1.4, 2022-03-25 22 ** Build: b221009 23 ** 24 ** Abstract: 25 ** Provides a system configuration function and a global variable that 26 ** contains the system frequency. It configures the device and initializes 27 ** the oscillator (PLL) that is part of the microcontroller device. 28 ** 29 ** Copyright 2016 Freescale Semiconductor, Inc. 30 ** Copyright 2016-2022 NXP 31 ** All rights reserved. 32 ** 33 ** SPDX-License-Identifier: BSD-3-Clause 34 ** 35 ** http: www.nxp.com 36 ** mail: support@nxp.com 37 ** 38 ** Revisions: 39 ** - rev. 0.1 (2017-01-10) 40 ** Initial version. 41 ** - rev. 1.0 (2018-11-16) 42 ** Update header files to align with IMXRT1060RM Rev.0. 43 ** - rev. 1.1 (2018-11-27) 44 ** Update header files to align with IMXRT1060RM Rev.1. 45 ** - rev. 1.2 (2019-04-29) 46 ** Add SET/CLR/TOG register group to register CTRL, STAT, CHANNELCTRL, CH0STAT, CH0OPTS, CH1STAT, CH1OPTS, CH2STAT, CH2OPTS, CH3STAT, CH3OPTS of DCP module. 47 ** - rev. 1.3 (2021-08-10) 48 ** Update header files to align with IMXRT1060RM Rev.3. 49 ** - rev. 1.4 (2022-03-25) 50 ** Add RT1060X device 51 ** 52 ** ################################################################### 53 */ 54 55 /*! 56 * @file MIMXRT1062 57 * @version 1.4 58 * @date 2022-03-25 59 * @brief Device specific configuration file for MIMXRT1062 (header file) 60 * 61 * Provides a system configuration function and a global variable that contains 62 * the system frequency. It configures the device and initializes the oscillator 63 * (PLL) that is part of the microcontroller device. 64 */ 65 66 #ifndef _SYSTEM_MIMXRT1062_H_ 67 #define _SYSTEM_MIMXRT1062_H_ /**< Symbol preventing repeated inclusion */ 68 69 #ifdef __cplusplus 70 extern "C" { 71 #endif 72 73 #include <stdint.h> 74 75 76 #ifndef DISABLE_WDOG 77 #define DISABLE_WDOG 1 78 #endif 79 80 /* Define clock source values */ 81 82 #define CPU_XTAL_CLK_HZ 24000000UL /* Value of the external crystal or oscillator clock frequency in Hz */ 83 84 #define CPU_CLK1_HZ 0UL /* Value of the CLK1 (select the CLK1_N/CLK1_P as source) frequency in Hz */ 85 /* If CLOCK1_P,CLOCK1_N is choose as the pll bypass clock source, please implement the CLKPN_FREQ define, otherwise 0 will be returned. */ 86 87 #define DEFAULT_SYSTEM_CLOCK 528000000UL /* Default System clock value */ 88 89 90 /** 91 * @brief System clock frequency (core clock) 92 * 93 * The system clock frequency supplied to the SysTick timer and the processor 94 * core clock. This variable can be used by the user application to setup the 95 * SysTick timer or configure other parameters. It may also be used by debugger to 96 * query the frequency of the debug timer or configure the trace clock speed 97 * SystemCoreClock is initialized with a correct predefined value. 98 */ 99 extern uint32_t SystemCoreClock; 100 101 /** 102 * @brief Setup the microcontroller system. 103 * 104 * Typically this function configures the oscillator (PLL) that is part of the 105 * microcontroller device. For systems with variable clock speed it also updates 106 * the variable SystemCoreClock. SystemInit is called from startup_device file. 107 */ 108 void SystemInit (void); 109 110 /** 111 * @brief Updates the SystemCoreClock variable. 112 * 113 * It must be called whenever the core clock is changed during program 114 * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates 115 * the current core clock. 116 */ 117 void SystemCoreClockUpdate (void); 118 119 /** 120 * @brief SystemInit function hook. 121 * 122 * This weak function allows to call specific initialization code during the 123 * SystemInit() execution.This can be used when an application specific code needs 124 * to be called as close to the reset entry as possible (for example the Multicore 125 * Manager MCMGR_EarlyInit() function call). 126 * NOTE: No global r/w variables can be used in this hook function because the 127 * initialization of these variables happens after this function. 128 */ 129 void SystemInitHook (void); 130 131 #ifdef __cplusplus 132 } 133 #endif 134 135 #endif /* _SYSTEM_MIMXRT1062_H_ */ 136