1 /* 2 ** ################################################################### 3 ** Processors: MIMX9131CVVXJ 4 ** MIMX9131DVVXJ 5 ** 6 ** Compilers: GNU C Compiler 7 ** IAR ANSI C/C++ Compiler for ARM 8 ** Keil ARM C/C++ Compiler 9 ** 10 ** Reference manual: IMX91RM Rev.1 11 ** Version: rev. 1.0, 2024-11-15 12 ** Build: b250112 13 ** 14 ** Abstract: 15 ** Provides a system configuration function and a global variable that 16 ** contains the system frequency. It configures the device and initializes 17 ** the oscillator (PLL) that is part of the microcontroller device. 18 ** 19 ** Copyright 2016 Freescale Semiconductor, Inc. 20 ** Copyright 2016-2025 NXP 21 ** SPDX-License-Identifier: BSD-3-Clause 22 ** 23 ** http: www.nxp.com 24 ** mail: support@nxp.com 25 ** 26 ** Revisions: 27 ** - rev. 1.0 (2024-11-15) 28 ** Initial version. 29 ** 30 ** ################################################################### 31 */ 32 33 /*! 34 * @file MIMX9131 35 * @version 1.0 36 * @date 2024-11-15 37 * @brief Device specific configuration file for MIMX9131 (header file) 38 * 39 * Provides a system configuration function and a global variable that contains 40 * the system frequency. It configures the device and initializes the oscillator 41 * (PLL) that is part of the microcontroller device. 42 */ 43 44 #ifndef _SYSTEM_MIMX9131_H_ 45 #define _SYSTEM_MIMX9131_H_ /**< Symbol preventing repeated inclusion */ 46 47 #ifdef __cplusplus 48 extern "C" { 49 #endif 50 51 #include <stdint.h> 52 53 /* Define clock source values */ 54 #define DEFAULT_SYSTEM_CLOCK 24000000U /* Default System clock value */ 55 56 /** 57 * @brief System clock frequency (core clock) 58 * 59 * The system clock frequency supplied to the SysTick timer and the processor 60 * core clock. This variable can be used by the user application to setup the 61 * SysTick timer or configure other parameters. It may also be used by debugger to 62 * query the frequency of the debug timer or configure the trace clock speed 63 * SystemCoreClock is initialized with a correct predefined value. 64 */ 65 extern uint32_t SystemCoreClock; 66 67 /** 68 * @brief Setup the microcontroller system. 69 * 70 * Typically this function configures the oscillator (PLL) that is part of the 71 * microcontroller device. For systems with variable clock speed it also updates 72 * the variable SystemCoreClock. SystemInit is called from startup_device file. 73 */ 74 void SystemInit (void); 75 76 /** 77 * @brief Updates the SystemCoreClock variable. 78 * 79 * It must be called whenever the core clock is changed during program 80 * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates 81 * the current core clock. 82 */ 83 void SystemCoreClockUpdate (void); 84 85 /** 86 * @brief SystemInit function hook. 87 * 88 * This weak function allows to call specific initialization code during the 89 * SystemInit() execution.This can be used when an application specific code needs 90 * to be called as close to the reset entry as possible (for example the Multicore 91 * Manager MCMGR_EarlyInit() function call). 92 * NOTE: No global r/w variables can be used in this hook function because the 93 * initialization of these variables happens after this function. 94 */ 95 void SystemInitHook (void); 96 97 #ifdef __cplusplus 98 } 99 #endif 100 101 #endif /* _SYSTEM_MIMX9131_H_ */ 102