Skip to content

Commit 771f23e

Browse files
mcux-sdk-ng: i.MX93: update headers for i.MX93
Update header files for i.MX93. Signed-off-by: Qiang Zhao <[email protected]>
1 parent 2de68b6 commit 771f23e

File tree

153 files changed

+3164
-2222
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+3164
-2222
lines changed

mcux/mcux-sdk-ng/devices/i.MX/i.MX93/MIMX9301/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#### device spepcific drivers
77
include(${SdkRootDirPath}/devices/arm/device_header.cmake)
8-
mcux_add_cmakelists(${SdkRootDirPath}/devices/i.MX/i.MX93/MIMX9301/drivers)
8+
mcux_add_cmakelists(${SdkRootDirPath}/${device_root}/i.MX/i.MX93/MIMX9301/drivers)
99

1010
#### i.MX shared drivers/components/middlewares, project segments
1111
include(${SdkRootDirPath}/devices/i.MX/shared.cmake)

mcux/mcux-sdk-ng/devices/i.MX/i.MX93/MIMX9301/MIMX9301_cm33.h

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
** Keil ARM C/C++ Compiler
99
**
1010
** Reference manual: IMX93RM, Internal, November. 2021
11-
** Version: rev. 1.0, 2021-11-16
12-
** Build: b240814
11+
** Version: rev. 2.0, 2024-10-29
12+
** Build: b250521
1313
**
1414
** Abstract:
1515
** CMSIS Peripheral Access Layer for MIMX9301_cm33
1616
**
1717
** Copyright 1997-2016 Freescale Semiconductor, Inc.
18-
** Copyright 2016-2024 NXP
18+
** Copyright 2016-2025 NXP
1919
** SPDX-License-Identifier: BSD-3-Clause
2020
**
2121
** http: www.nxp.com
@@ -24,14 +24,17 @@
2424
** Revisions:
2525
** - rev. 1.0 (2021-11-16)
2626
** Initial version.
27+
** - rev. 2.0 (2024-10-29)
28+
** Change the device header file from single flat file to multiple files based on peripherals,
29+
** each peripheral with dedicated header file located in periphN folder.
2730
**
2831
** ###################################################################
2932
*/
3033

3134
/*!
3235
* @file MIMX9301_cm33.h
33-
* @version 1.0
34-
* @date 2021-11-16
36+
* @version 2.0
37+
* @date 2024-10-29
3538
* @brief CMSIS Peripheral Access Layer for MIMX9301_cm33
3639
*
3740
* CMSIS Peripheral Access Layer for MIMX9301_cm33

mcux/mcux-sdk-ng/devices/i.MX/i.MX93/MIMX9301/MIMX9301_cm33_COMMON.h

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
** Keil ARM C/C++ Compiler
99
**
1010
** Reference manual: IMX93RM, Internal, November. 2021
11-
** Version: rev. 1.0, 2021-11-16
12-
** Build: b240823
11+
** Version: rev. 2.0, 2024-10-29
12+
** Build: b250521
1313
**
1414
** Abstract:
1515
** CMSIS Peripheral Access Layer for MIMX9301_cm33
1616
**
1717
** Copyright 1997-2016 Freescale Semiconductor, Inc.
18-
** Copyright 2016-2024 NXP
18+
** Copyright 2016-2025 NXP
1919
** SPDX-License-Identifier: BSD-3-Clause
2020
**
2121
** http: www.nxp.com
@@ -24,14 +24,17 @@
2424
** Revisions:
2525
** - rev. 1.0 (2021-11-16)
2626
** Initial version.
27+
** - rev. 2.0 (2024-10-29)
28+
** Change the device header file from single flat file to multiple files based on peripherals,
29+
** each peripheral with dedicated header file located in periphN folder.
2730
**
2831
** ###################################################################
2932
*/
3033

3134
/*!
3235
* @file MIMX9301_cm33_COMMON.h
33-
* @version 1.0
34-
* @date 2021-11-16
36+
* @version 2.0
37+
* @date 2024-10-29
3538
* @brief CMSIS Peripheral Access Layer for MIMX9301_cm33
3639
*
3740
* CMSIS Peripheral Access Layer for MIMX9301_cm33
@@ -42,7 +45,7 @@
4245

4346
/** Memory map major version (memory maps with equal major version number are
4447
* compatible) */
45-
#define MCU_MEM_MAP_VERSION 0x0100U
48+
#define MCU_MEM_MAP_VERSION 0x0200U
4649
/** Memory map minor version */
4750
#define MCU_MEM_MAP_VERSION_MINOR 0x0000U
4851

@@ -375,7 +378,9 @@ typedef enum IRQn {
375378
*/ /* end of group Cortex_Core_Configuration */
376379

377380

381+
#ifndef MIMX9301_cm33_SERIES
378382
#define MIMX9301_cm33_SERIES
383+
#endif
379384
/* CPU specific feature definitions */
380385
#include "MIMX9301_cm33_features.h"
381386

@@ -2980,13 +2985,13 @@ typedef enum IRQn {
29802985
/** Peripheral TPM6 base pointer */
29812986
#define TPM6_NS ((TPM_Type *)TPM6_BASE_NS)
29822987
/** Array initializer of TPM peripheral base addresses */
2983-
#define TPM_BASE_ADDRS { TPM1_BASE, TPM2_BASE, TPM3_BASE, TPM4_BASE, TPM5_BASE, TPM6_BASE }
2988+
#define TPM_BASE_ADDRS { 0u, TPM1_BASE, TPM2_BASE, TPM3_BASE, TPM4_BASE, TPM5_BASE, TPM6_BASE }
29842989
/** Array initializer of TPM peripheral base pointers */
2985-
#define TPM_BASE_PTRS { TPM1, TPM2, TPM3, TPM4, TPM5, TPM6 }
2990+
#define TPM_BASE_PTRS { (TPM_Type *)0u, TPM1, TPM2, TPM3, TPM4, TPM5, TPM6 }
29862991
/** Array initializer of TPM peripheral base addresses */
2987-
#define TPM_BASE_ADDRS_NS { TPM1_BASE_NS, TPM2_BASE_NS, TPM3_BASE_NS, TPM4_BASE_NS, TPM5_BASE_NS, TPM6_BASE_NS }
2992+
#define TPM_BASE_ADDRS_NS { 0u, TPM1_BASE_NS, TPM2_BASE_NS, TPM3_BASE_NS, TPM4_BASE_NS, TPM5_BASE_NS, TPM6_BASE_NS }
29882993
/** Array initializer of TPM peripheral base pointers */
2989-
#define TPM_BASE_PTRS_NS { TPM1_NS, TPM2_NS, TPM3_NS, TPM4_NS, TPM5_NS, TPM6_NS }
2994+
#define TPM_BASE_PTRS_NS { (TPM_Type *)0u, TPM1_NS, TPM2_NS, TPM3_NS, TPM4_NS, TPM5_NS, TPM6_NS }
29902995
#else
29912996
/** Peripheral TPM1 base address */
29922997
#define TPM1_BASE (0x44310000u)
@@ -3013,12 +3018,12 @@ typedef enum IRQn {
30133018
/** Peripheral TPM6 base pointer */
30143019
#define TPM6 ((TPM_Type *)TPM6_BASE)
30153020
/** Array initializer of TPM peripheral base addresses */
3016-
#define TPM_BASE_ADDRS { TPM1_BASE, TPM2_BASE, TPM3_BASE, TPM4_BASE, TPM5_BASE, TPM6_BASE }
3021+
#define TPM_BASE_ADDRS { 0u, TPM1_BASE, TPM2_BASE, TPM3_BASE, TPM4_BASE, TPM5_BASE, TPM6_BASE }
30173022
/** Array initializer of TPM peripheral base pointers */
3018-
#define TPM_BASE_PTRS { TPM1, TPM2, TPM3, TPM4, TPM5, TPM6 }
3023+
#define TPM_BASE_PTRS { (TPM_Type *)0u, TPM1, TPM2, TPM3, TPM4, TPM5, TPM6 }
30193024
#endif
30203025
/** Interrupt vectors for the TPM peripheral type */
3021-
#define TPM_IRQS { TPM1_IRQn, TPM2_IRQn, TPM3_IRQn, TPM4_IRQn, TPM5_IRQn, TPM6_IRQn }
3026+
#define TPM_IRQS { NotAvail_IRQn, TPM1_IRQn, TPM2_IRQn, TPM3_IRQn, TPM4_IRQn, TPM5_IRQn, TPM6_IRQn }
30223027

30233028
/* TRDC_MBC0 - Peripheral instance base addresses */
30243029
#if (defined(__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE & 0x2))

mcux/mcux-sdk-ng/devices/i.MX/i.MX93/MIMX9301/MIMX9301_cm33_features.h

Lines changed: 73 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/*
22
** ###################################################################
33
** Version: rev. 1.0, 2021-11-16
4-
** Build: b241030
4+
** Build: b250623
55
**
66
** Abstract:
77
** Chip specific module features.
88
**
99
** Copyright 2016 Freescale Semiconductor, Inc.
10-
** Copyright 2016-2024 NXP
10+
** Copyright 2016-2025 NXP
1111
** SPDX-License-Identifier: BSD-3-Clause
1212
**
1313
** http: www.nxp.com
@@ -25,6 +25,8 @@
2525

2626
/* SOC module features */
2727

28+
/* @brief ADC availability on the SoC. */
29+
#define FSL_FEATURE_SOC_ADC_COUNT (1)
2830
/* @brief AXBS availability on the SoC. */
2931
#define FSL_FEATURE_SOC_AXBS_COUNT (1)
3032
/* @brief BBNSM availability on the SoC. */
@@ -100,10 +102,17 @@
100102
/* @brief XCACHE availability on the SoC. */
101103
#define FSL_FEATURE_SOC_XCACHE_COUNT (2)
102104

105+
/* ADC module features */
106+
107+
/* @brief Channel group counts of ADC. */
108+
#define FSL_FEATURE_ADC_CHANNEL_GROUPS_COUNT (2)
109+
/* @brief Threshold counts of ADC. */
110+
#define FSL_FEATURE_ADC_THRESHOLDS_COUNT (8)
111+
/* @brief Self-test threshold counts of ADC. */
112+
#define FSL_FEATURE_ADC_SELF_TEST_THRESHOLDS_COUNT (6)
113+
103114
/* FLEXCAN module features */
104115

105-
/* @brief Has more than 64 MBs. */
106-
#define FSL_FEATURE_FLEXCAN_HAS_MORE_THAN_64_MB (1)
107116
/* @brief Message buffer size */
108117
#define FSL_FEATURE_FLEXCAN_HAS_MESSAGE_BUFFER_MAX_NUMBERn(x) (96)
109118
/* @brief Has doze mode support (register bit field MCR[DOZE]). */
@@ -152,12 +161,36 @@
152161
#define FSL_FEATURE_FLEXCAN_HAS_PN_MODE (0)
153162
/* @brief Has Enhanced Rx FIFO. */
154163
#define FSL_FEATURE_FLEXCAN_HAS_ENHANCED_RX_FIFO (1)
164+
/* @brief Has Enhanced Rx FIFO. */
165+
#define FSL_FEATURE_FLEXCAN_INSTANCE_HAS_ENHANCED_RX_FIFOn(x) (1)
155166
/* @brief Enhanced Rx FIFO size (Indicates how many CAN FD messages can be stored). */
156167
#define FSL_FEATURE_FLEXCAN_HAS_ENHANCED_RX_FIFO_SIZE (20)
157168
/* @brief The number of enhanced Rx FIFO filter element registers. */
158169
#define FSL_FEATURE_FLEXCAN_HAS_ENHANCED_RX_FIFO_FILTER_MAX_NUMBER (128)
159170
/* @brief Does not support Supervisor Mode (bitfield MCR[SUPV]. */
160171
#define FSL_FEATURE_FLEXCAN_HAS_NO_SUPV_SUPPORT (0)
172+
/* @brief Has more than 64 MBs. */
173+
#define FSL_FEATURE_FLEXCAN_HAS_MORE_THAN_64_MB (1)
174+
/* @brief Does not support self wake feature(bitfield MCR[SLFWAK]) */
175+
#define FSL_FEATURE_FLEXCAN_HAS_NO_SLFWAK_SUPPORT (0)
176+
/* @brief Has external time tick source (bitfield CTRL2[TIMER_SRC]). */
177+
#define FSL_FEATURE_FLEXCAN_HAS_EXTERNAL_TIME_TICK (1)
178+
/* @brief Instance has external time tick source (register bit field CTRL2[TIMER_SRC]). */
179+
#define FSL_FEATURE_FLEXCAN_INSTANCE_HAS_EXTERNAL_TIME_TICKn(x) (1)
180+
/* @brief Has Time Stamp Capture Point(bitfield CTRL2[TSTAMPCAP]). */
181+
#define FSL_FEATURE_FLEXCAN_HAS_HIGH_RESOLUTION_TIMESTAMP (1)
182+
/* @brief Instance has Pretended Networking option (register bit field MCR[PNET_EN]). */
183+
#define FSL_FEATURE_FLEXCAN_INSTANCE_HAS_PN_MODEn(x) (0)
184+
/* @brief FlexCAN maximum data rate. */
185+
#define FSL_FEATURE_FLEXCAN_MAX_CANFD_BITRATE (8000000)
186+
/* @brief Support payload endianness selection (bitfield CTRL2[PES]). */
187+
#define FSL_FEATURE_FLEXCAN_HAS_ENDIANNESS_SELECTION (0)
188+
/* @brief Enter Freeze mode before entering Disable and Stop mode. */
189+
#define FSL_FEATURE_FLEXCAN_ENTER_FREEZE_MODE (0)
190+
/* @brief Is affected by errata with ID 8341 (FlexCAN: Entering Freeze Mode or Low Power Mode from Normal Mode can cause the FlexCAN module to stop operating). */
191+
#define FSL_FEATURE_FLEXCAN_HAS_ERRATA_8341 (0)
192+
/* @brief Is affected by errata with ID 050443 (FlexCAN: : Receive Message Buffers may have its CODE Field corrupted if the Receive FIFO function is used in Classical CAN mode). */
193+
#define FSL_FEATURE_FLEXCAN_HAS_ERRATA_050443 (0)
161194

162195
/* EDMA module features */
163196

@@ -294,12 +327,14 @@
294327

295328
/* FLEXIO module features */
296329

330+
/* @brief Has DOZEN bit(CTRL[DOZEN]) */
331+
#define FSL_FEATURE_FLEXIO_HAS_DOZE_MODE_SUPPORT (1)
332+
/* @brief FLEXIO support reset from RSTCTL */
333+
#define FSL_FEATURE_FLEXIO_HAS_RESET (0)
297334
/* @brief Has Shifter Status Register (FLEXIO_SHIFTSTAT) */
298335
#define FSL_FEATURE_FLEXIO_HAS_SHIFTER_STATUS (1)
299336
/* @brief Has Pin Data Input Register (FLEXIO_PIN) */
300337
#define FSL_FEATURE_FLEXIO_HAS_PIN_STATUS (1)
301-
/* @brief Has pin input output related registers */
302-
#define FSL_FEATURE_FLEXIO_HAS_PIN_REGISTER (1)
303338
/* @brief Has Shifter Buffer N Nibble Byte Swapped Register (FLEXIO_SHIFTBUFNBSn) */
304339
#define FSL_FEATURE_FLEXIO_HAS_SHFT_BUFFER_NIBBLE_BYTE_SWAP (1)
305340
/* @brief Has Shifter Buffer N Half Word Swapped Register (FLEXIO_SHIFTBUFHWSn) */
@@ -316,10 +351,12 @@
316351
#define FSL_FEATURE_FLEXIO_VERID_RESET_VALUE (0x2010003)
317352
/* @brief Reset value of the FLEXIO_PARAM register */
318353
#define FSL_FEATURE_FLEXIO_PARAM_RESET_VALUE (0x4200808)
319-
/* @brief Represent the bit width of the TIMDCE field (FLEXIO_TIMCFGLn[TIMDEC]) */
320-
#define FSL_FEATURE_FLEXIO_TIMCFG_TIMDCE_FIELD_WIDTH (3)
321354
/* @brief Flexio DMA request base channel */
322355
#define FSL_FEATURE_FLEXIO_DMA_REQUEST_BASE_CHANNEL (0)
356+
/* @brief Represent the bit width of the TIMDCE field (FLEXIO_TIMCFGLn[TIMDEC]) */
357+
#define FSL_FEATURE_FLEXIO_TIMCFG_TIMDCE_FIELD_WIDTH (3)
358+
/* @brief Has pin input output related registers */
359+
#define FSL_FEATURE_FLEXIO_HAS_PIN_REGISTER (1)
323360

324361
/* FLEXSPI module features */
325362

@@ -377,6 +414,18 @@
377414
#define FSL_FEATURE_I3C_HAS_HDROK (1)
378415
/* @brief SOC doesn't support slave IBI/MR/HJ. */
379416
#define FSL_FEATURE_I3C_HAS_NO_SLAVE_IBI_MR_HJ (0)
417+
/* @brief Has ERRATA_051617. */
418+
#define FSL_FEATURE_I3C_HAS_ERRATA_051617 (0)
419+
/* @brief Has ERRATA_052123. */
420+
#define FSL_FEATURE_I3C_HAS_ERRATA_052123 (0)
421+
/* @brief Has ERRATA_052086. */
422+
#define FSL_FEATURE_I3C_HAS_ERRATA_052086 (0)
423+
/* @brief Has IBI bytes. */
424+
#define FSL_FEATURE_I3C_HAS_IBI_PAYLOAD_SIZE_OPTIONAL_BYTE (0)
425+
/* @brief Has SCL delay after START. */
426+
#define FSL_FEATURE_I3C_HAS_START_SCL_DELAY (1)
427+
/* @brief Has no the master write data register for DMA. */
428+
#define FSL_FEATURE_I3C_HAS_NO_MASTER_DMA_WDATA_REG (0)
380429

381430
/* XCACHE module features */
382431

@@ -391,6 +440,8 @@
391440
#define FSL_FEATURE_LPI2C_HAS_SEPARATE_DMA_RX_TX_REQn(x) (1)
392441
/* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */
393442
#define FSL_FEATURE_LPI2C_FIFO_SIZEn(x) (8)
443+
/* @brief Has dedicated interrupt for master and slave. */
444+
#define FSL_FEATURE_LPI2C_HAS_ROLE_SPLIT_IRQ (0)
394445

395446
/* LPIT module features */
396447

@@ -403,15 +454,15 @@
403454

404455
/* LPSPI module features */
405456

406-
/* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */
457+
/* @brief Capacity (number of entries) of the transmit/receive FIFO. */
407458
#define FSL_FEATURE_LPSPI_FIFO_SIZEn(x) (8)
408459
/* @brief Has separate DMA RX and TX requests. */
409460
#define FSL_FEATURE_LPSPI_HAS_SEPARATE_DMA_RX_TX_REQn(x) (1)
410461
/* @brief Has CCR1 (related to existence of registers CCR1). */
411462
#define FSL_FEATURE_LPSPI_HAS_CCR1 (1)
412-
/* @brief Has no PCSCFG bit in CFGR1 register */
463+
/* @brief Has no PCSCFG bit in CFGR1 register. */
413464
#define FSL_FEATURE_LPSPI_HAS_NO_PCSCFG (1)
414-
/* @brief Has no WIDTH bits in TCR register */
465+
/* @brief Has no WIDTH bits in TCR register. */
415466
#define FSL_FEATURE_LPSPI_HAS_NO_MULTI_WIDTH (1)
416467

417468
/* LPTMR module features */
@@ -497,12 +548,18 @@
497548
#define FSL_FEATURE_LPUART_HAS_GLOBAL (1)
498549
/* @brief Has LPUART_PINCFG. */
499550
#define FSL_FEATURE_LPUART_HAS_PINCFG (1)
551+
/* @brief Belong to LPFLEXCOMM */
552+
#define FSL_FEATURE_LPUART_IS_LPFLEXCOMM (0)
500553
/* @brief Has register MODEM Control. */
501554
#define FSL_FEATURE_LPUART_HAS_MCR (1)
502555
/* @brief Has register Half Duplex Control. */
503556
#define FSL_FEATURE_LPUART_HAS_HDCR (1)
504557
/* @brief Has register Timeout. */
505558
#define FSL_FEATURE_LPUART_HAS_TIMEOUT (1)
559+
/* @brief UART support swap TX and RX (has bit CTRL[SWAP]). */
560+
#define FSL_FEATURE_LPUART_HAS_CTRL_SWAP (0)
561+
/* @brief UART support receive rts configuration (has bit MODIR[RTSWATER]). */
562+
#define FSL_FEATURE_LPUART_HAS_MODIR_RTSWATER (1)
506563

507564
/* MEMORY module features */
508565

@@ -621,12 +678,16 @@
621678
#define FSL_FEATURE_SAI_HAS_MDR (0)
622679
/* @brief Has support the BCLK bypass mode when BCLK = MCLK. */
623680
#define FSL_FEATURE_SAI_HAS_BCLK_BYPASS (1)
624-
/* @brief Has DIV bit fields of MCR register (register bit fields MCR[DIV]. */
681+
/* @brief Has DIV bit fields of MCR register (register bit fields MCR[DIV]). */
625682
#define FSL_FEATURE_SAI_HAS_MCR_MCLK_POST_DIV (1)
626683
/* @brief Support Channel Mode (register bit fields TCR4[CHMOD]). */
627684
#define FSL_FEATURE_SAI_HAS_CHANNEL_MODE (1)
628685
/* @brief Support synchronous with another SAI. */
629686
#define FSL_FEATURE_SAI_HAS_SYNC_WITH_ANOTHER_SAI (0)
687+
/* @brief Has Bit Clock Swap option (register bit fields RCR2[BCS]) */
688+
#define FSL_FEATURE_SAI_HAS_BIT_CLOCK_SWAP (1)
689+
/* @brief SAI5 and SAI6 share one irq number. */
690+
#define FSL_FEATURE_SAI_SAI5_SAI6_SHARE_IRQ (0)
630691

631692
/* SEMA42 module features */
632693

mcux/mcux-sdk-ng/devices/i.MX/i.MX93/MIMX9301/fsl_device_registers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright 2014-2016 Freescale Semiconductor, Inc.
3-
* Copyright 2016-2024 NXP
3+
* Copyright 2016-2025 NXP
44
* SPDX-License-Identifier: BSD-3-Clause
55
*
66
*/

mcux/mcux-sdk-ng/devices/i.MX/i.MX93/MIMX9301/system_MIMX9301_cm33.c

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
** Keil ARM C/C++ Compiler
99
**
1010
** Reference manual: IMX93RM, Internal, November. 2021
11-
** Version: rev. 1.0, 2021-11-16
12-
** Build: b231019
11+
** Version: rev. 2.0, 2024-10-29
12+
** Build: b250521
1313
**
1414
** Abstract:
1515
** Provides a system configuration function and a global variable that
1616
** contains the system frequency. It configures the device and initializes
1717
** the oscillator (PLL) that is part of the microcontroller device.
1818
**
1919
** Copyright 2016 Freescale Semiconductor, Inc.
20-
** Copyright 2016-2023 NXP
20+
** Copyright 2016-2025 NXP
2121
** SPDX-License-Identifier: BSD-3-Clause
2222
**
2323
** http: www.nxp.com
@@ -26,10 +26,14 @@
2626
** Revisions:
2727
** - rev. 1.0 (2021-11-16)
2828
** Initial version.
29+
** - rev. 2.0 (2024-10-29)
30+
** Change the device header file from single flat file to multiple files based on peripherals,
31+
** each peripheral with dedicated header file located in periphN folder.
2932
**
3033
** ###################################################################
3134
*/
3235

36+
3337
#include "system_MIMX9301_cm33.h"
3438

3539
/* ----------------------------------------------------------------------------
@@ -44,11 +48,11 @@ uint32_t SystemCoreClock = DEFAULT_SYSTEM_CLOCK;
4448
void SystemInit(void)
4549
{
4650
#if ((__FPU_PRESENT == 1) && (__FPU_USED == 1))
47-
SCB->CPACR |= ((3UL << 10 * 2) | (3UL << 11 * 2)); /* set CP10, CP11 Full Access in Secure mode */
48-
#if defined(__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
49-
SCB_NS->CPACR |= ((3UL << 10 * 2) | (3UL << 11 * 2)); /* set CP10, CP11 Full Access in Non-secure mode */
50-
#endif /* (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */
51-
#endif /* ((__FPU_PRESENT == 1) && (__FPU_USED == 1)) */
51+
SCB->CPACR |= ((3UL << 10*2) | (3UL << 11*2)); /* set CP10, CP11 Full Access in Secure mode */
52+
#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
53+
SCB_NS->CPACR |= ((3UL << 10*2) | (3UL << 11*2)); /* set CP10, CP11 Full Access in Non-secure mode */
54+
#endif /* (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U) */
55+
#endif /* ((__FPU_PRESENT == 1) && (__FPU_USED == 1)) */
5256

5357
SystemInitHook();
5458
}

0 commit comments

Comments
 (0)