/* ** ################################################################### ** Processors: MIMX8MN6CUCIZ ** MIMX8MN6CVTIZ ** MIMX8MN6DUCJZ ** MIMX8MN6DVTJZ ** ** Compilers: GNU C Compiler ** IAR ANSI C/C++ Compiler for ARM ** Keil ARM C/C++ Compiler ** ** Reference manual: MX8MNRM, Rev.B, 07/2019 ** Version: rev. 2.0, 2019-09-23 ** Build: b211020 ** ** Abstract: ** Provides a system configuration function and a global variable that ** contains the system frequency. It configures the device and initializes ** the oscillator (PLL) that is part of the microcontroller device. ** ** Copyright 2016 Freescale Semiconductor, Inc. ** Copyright 2016-2021 NXP ** All rights reserved. ** ** SPDX-License-Identifier: BSD-3-Clause ** ** http: www.nxp.com ** mail: support@nxp.com ** ** Revisions: ** - rev. 1.0 (2019-04-22) ** Initial version. ** - rev. 2.0 (2019-09-23) ** Rev.B Header RFP ** ** ################################################################### */ /*! * @file MIMX8MN6_ca53 * @version 2.0 * @date 2019-09-23 * @brief Device specific configuration file for MIMX8MN6_ca53 (implementation * file) * * Provides a system configuration function and a global variable that contains * the system frequency. It configures the device and initializes the oscillator * (PLL) that is part of the microcontroller device. */ #include #include "fsl_device_registers.h" /* ---------------------------------------------------------------------------- -- Core clock ---------------------------------------------------------------------------- */ uint32_t SystemCoreClock = DEFAULT_SYSTEM_CLOCK; /* ---------------------------------------------------------------------------- -- SystemInit() ---------------------------------------------------------------------------- */ void SystemInit (void) { #if ((__FPU_PRESENT == 1) && (__FPU_USED == 1)) __ASM volatile("mov x0, #(3 << 20) \n\t" "msr cpacr_el1, x0"); #endif /* ((__FPU_PRESENT == 1) && (__FPU_USED == 1)) */ SystemInitHook(); ARM_TIMER_GetFreq(&SystemCoreClock); } /* ---------------------------------------------------------------------------- -- SystemCoreClockUpdate() ---------------------------------------------------------------------------- */ void SystemCoreClockUpdate (void) { } /* ---------------------------------------------------------------------------- -- SystemInitHook() ---------------------------------------------------------------------------- */ __attribute__ ((weak)) void SystemInitHook (void) { /* Void implementation of the weak function. */ }