1 /* 2 ** ################################################################### 3 ** Processor: MIMXRT798SGFOA_ezhv 4 ** Compilers: LLVM Compiler 5 ** 6 ** Reference manual: iMXRT700RM Rev.1, 08/2022 7 ** Version: rev. 1.0, 2022-08-01 8 ** Build: b221115 9 ** 10 ** Copyright 2024 NXP 11 ** All rights reserved. 12 ** 13 ** SPDX-License-Identifier: BSD-3-Clause 14 ** 15 ** http: www.nxp.com 16 ** mail: support@nxp.com 17 ** 18 ** Revisions: 19 ** - rev. 1.0 (2022-08-01) 20 ** Initial version. 21 ** 22 ** ################################################################### 23 */ 24 25 /*! 26 * @file MIMXRT798S_ezhv 27 * @version 1.0 28 * @date 2022-08-01 29 * @brief Device specific configuration file for MIMXRT798S_ezhv (header 30 * file) 31 */ 32 33 #ifndef _SYSTEM_MIMXRT798S_ezhv_H_ 34 #define _SYSTEM_MIMXRT798S_ezhv_H_ /**< Symbol preventing repeated inclusion */ 35 36 #ifdef __cplusplus 37 extern "C" { 38 #endif 39 40 #include <stdint.h> 41 42 #define DEFAULT_SYSTEM_CLOCK 192000000u /* Default System clock value */ 43 #ifndef CLK_XTAL_OSC_CLK 44 #define CLK_XTAL_OSC_CLK 24000000u /* Default XTAL OSC clock, set to 0 when external CLKIN is used */ 45 #endif 46 #ifndef CLK_EXT_CLKIN 47 #define CLK_EXT_CLKIN 0u /* Default external CLKIN pin clock, set to 0 when XTAL OSC is used */ 48 #endif 49 #define CLK_OSC_CLK ((CLK_XTAL_OSC_CLK != 0U) ? CLK_XTAL_OSC_CLK : CLK_EXT_CLKIN) 50 51 #define CLK_RTC_32K_CLK 32768u /* RTC oscillator 32 kHz (32k_clk) */ 52 #define CLK_LPOSC_1MHZ 1000000u /* Low power oscillator 1 MHz (1m_lposc) */ 53 #define CLK_FRO0_DEFAULT_CLK 300000000u /* FRO0 default clock frequency (fro0_max) */ 54 #define CLK_FRO1_MAX_CLK 192000000u /* FRO1 max clock frequency (fro1) */ 55 #define CLK_FRO2_DEFAULT_CLK 196000000u /* FRO2 default clock frequency (fro2_max) */ 56 57 /** 58 * @brief System clock frequency (core clock) 59 * 60 * The system clock frequency supplied to the SysTick timer and the processor 61 * core clock. This variable can be used by the user application to setup the 62 * SysTick timer or configure other parameters. It may also be used by debugger to 63 * query the frequency of the debug timer or configure the trace clock speed 64 * SystemCoreClock is initialized with a correct predefined value. 65 */ 66 extern uint32_t SystemCoreClock; 67 68 /** 69 * @brief Setup the microcontroller system. 70 * 71 * Typically this function configures the oscillator (PLL) that is part of the 72 * microcontroller device. For systems with variable clock speed it also updates 73 * the variable SystemCoreClock. SystemInit is called from startup_device file. 74 */ 75 void SystemInit (void); 76 77 /** 78 * @brief Updates the SystemCoreClock variable. 79 * 80 * It must be called whenever the core clock is changed during program 81 * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates 82 * the current core clock. 83 */ 84 void SystemCoreClockUpdate (void); 85 86 /** 87 * @brief SystemInit function hook. 88 * 89 * This weak function allows to call specific initialization code during the 90 * SystemInit() execution.This can be used when an application specific code needs 91 * to be called as close to the reset entry as possible (for example the Multicore 92 * Manager MCMGR_EarlyInit() function call). 93 * NOTE: No global r/w variables can be used in this hook function because the 94 * initialization of these variables happens after this function. 95 */ 96 void SystemInitHook (void); 97 98 #ifdef __cplusplus 99 } 100 #endif 101 102 #endif /* _SYSTEM_MIMXRT798S_ezhv_H_ */ 103