Skip to content

Commit f83fdbc

Browse files
committed
hal_nxp: Sync 25.06 RT to hal_nxp
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
1 parent 74c1de4 commit f83fdbc

File tree

1,327 files changed

+68411
-20588
lines changed

Some content is hidden

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

1,327 files changed

+68411
-20588
lines changed

mcux/mcux-sdk-ng/devices/RT/LICENSE

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Copyright 1997-2016 Freescale Semiconductor, Inc
2+
Copyright 2016-2024 NXP
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
7+
1. Redistributions of source code must retain the above copyright notice, this
8+
list of conditions and the following disclaimer.
9+
10+
2. Redistributions in binary form must reproduce the above copyright notice,
11+
this list of conditions and the following disclaimer in the documentation
12+
and/or other materials provided with the distribution.
13+
14+
3. Neither the name of the copyright holder nor the names of its contributors
15+
may be used to endorse or promote products derived from this software without
16+
specific prior written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

mcux/mcux-sdk-ng/devices/RT/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# MCUXpresso SDK : mcux-devices-rt
2+
3+
## Overview
4+
This repository is for MCUXpresso SDK's CMSIS devices delivery for NXP RT portfolio. It contains the device header files, startup files, default linker files and SoC specific drivers officially provided in NXP MCUXpresso SDK. This repository is part of the MCUXpresso SDK overall delivery which is composed of several sub-repositories/projects. Navigate to the top/parent repository [mcuxsdk-manifests](https://github.com/nxp-mcuxpresso/mcuxsdk-manifests) for the complete delivery of MCUXpresso SDK.
5+
6+
## Documentation
7+
Overall details can be reviewed here: [MCUXpresso SDK Online Documentation](https://mcuxpresso.nxp.com/mcuxsdk/latest/html/introduction/README.html)
8+
9+
Visit [Drivers - Documentation](https://mcuxpresso.nxp.com/mcuxsdk/latest/html/drivers/index.html) to review details of drivers in this sub-repo.
10+
11+
## Setup
12+
Instructions on how to install the MCUXpresso SDK provided from GitHub via west manifest [Getting Started with SDK - Detailed Installation Instructions](https://mcuxpresso.nxp.com/mcuxsdk/latest/html/gsd/installation.html#installation)
13+
14+
## Contribution
15+
Contributions are not currently accepted. Guidelines to contribute will be posted in the future.

mcux/mcux-sdk-ng/devices/RT/RT1010/MIMXRT1011/MIMXRT1011.h

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
** MCUXpresso Compiler
1111
**
1212
** Reference manual: IMXRT1010RM Rev.1, 10/2021 | IMXRT1010SRM Rev.0
13-
** Version: rev. 1.2, 2021-08-10
14-
** Build: b240705
13+
** Version: rev. 2.0, 2024-10-29
14+
** Build: b250520
1515
**
1616
** Abstract:
1717
** CMSIS Peripheral Access Layer for MIMXRT1011
1818
**
1919
** Copyright 1997-2016 Freescale Semiconductor, Inc.
20-
** Copyright 2016-2024 NXP
20+
** Copyright 2016-2025 NXP
2121
** SPDX-License-Identifier: BSD-3-Clause
2222
**
2323
** http: www.nxp.com
@@ -32,14 +32,17 @@
3232
** Update header files to align with IMXRT1010RM Rev.B.
3333
** - rev. 1.2 (2021-08-10)
3434
** Update header files to align with IMXRT1010RM Rev.1.
35+
** - rev. 2.0 (2024-10-29)
36+
** Change the device header file from single flat file to multiple files based on peripherals,
37+
** each peripheral with dedicated header file located in periphN folder.
3538
**
3639
** ###################################################################
3740
*/
3841

3942
/*!
4043
* @file MIMXRT1011.h
41-
* @version 1.2
42-
* @date 2021-08-10
44+
* @version 2.0
45+
* @date 2024-10-29
4346
* @brief CMSIS Peripheral Access Layer for MIMXRT1011
4447
*
4548
* CMSIS Peripheral Access Layer for MIMXRT1011

mcux/mcux-sdk-ng/devices/RT/RT1010/MIMXRT1011/MIMXRT1011_COMMON.h

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
** MCUXpresso Compiler
1111
**
1212
** Reference manual: IMXRT1010RM Rev.1, 10/2021 | IMXRT1010SRM Rev.0
13-
** Version: rev. 1.2, 2021-08-10
14-
** Build: b240823
13+
** Version: rev. 2.0, 2024-10-29
14+
** Build: b250520
1515
**
1616
** Abstract:
1717
** CMSIS Peripheral Access Layer for MIMXRT1011
1818
**
1919
** Copyright 1997-2016 Freescale Semiconductor, Inc.
20-
** Copyright 2016-2024 NXP
20+
** Copyright 2016-2025 NXP
2121
** SPDX-License-Identifier: BSD-3-Clause
2222
**
2323
** http: www.nxp.com
@@ -32,14 +32,17 @@
3232
** Update header files to align with IMXRT1010RM Rev.B.
3333
** - rev. 1.2 (2021-08-10)
3434
** Update header files to align with IMXRT1010RM Rev.1.
35+
** - rev. 2.0 (2024-10-29)
36+
** Change the device header file from single flat file to multiple files based on peripherals,
37+
** each peripheral with dedicated header file located in periphN folder.
3538
**
3639
** ###################################################################
3740
*/
3841

3942
/*!
4043
* @file MIMXRT1011_COMMON.h
41-
* @version 1.2
42-
* @date 2021-08-10
44+
* @version 2.0
45+
* @date 2024-10-29
4346
* @brief CMSIS Peripheral Access Layer for MIMXRT1011
4447
*
4548
* CMSIS Peripheral Access Layer for MIMXRT1011
@@ -50,9 +53,9 @@
5053

5154
/** Memory map major version (memory maps with equal major version number are
5255
* compatible) */
53-
#define MCU_MEM_MAP_VERSION 0x0100U
56+
#define MCU_MEM_MAP_VERSION 0x0200U
5457
/** Memory map minor version */
55-
#define MCU_MEM_MAP_VERSION_MINOR 0x0002U
58+
#define MCU_MEM_MAP_VERSION_MINOR 0x0000U
5659

5760

5861
/* ----------------------------------------------------------------------------
@@ -195,7 +198,9 @@ typedef enum IRQn {
195198
*/ /* end of group Cortex_Core_Configuration */
196199

197200

201+
#ifndef MIMXRT1011_SERIES
198202
#define MIMXRT1011_SERIES
203+
#endif
199204
/* CPU specific feature definitions */
200205
#include "MIMXRT1011_features.h"
201206

mcux/mcux-sdk-ng/devices/RT/RT1010/MIMXRT1011/MIMXRT1011_features.h

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/*
22
** ###################################################################
33
** Version: rev. 1.0, 2019-08-01
4-
** Build: b241030
4+
** Build: b250506
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
@@ -194,6 +194,8 @@
194194
#define FSL_FEATURE_DMAMUX_HAS_A_ON (1)
195195
/* @brief Register CHCFGn width. */
196196
#define FSL_FEATURE_DMAMUX_CHCFG_REGISTER_WIDTH (32)
197+
/* @brief Register CHCFGn sorted in order 3, 2 ,1 ,0 ,7 ,6 ,5 ,4 ... */
198+
#define FSL_FEATURE_DMAMUX_CHANNEL_NEEDS_ENDIAN_CONVERT (0)
197199

198200
/* EWM module features */
199201

@@ -204,12 +206,14 @@
204206

205207
/* FLEXIO module features */
206208

209+
/* @brief Has DOZEN bit(CTRL[DOZEN]) */
210+
#define FSL_FEATURE_FLEXIO_HAS_DOZE_MODE_SUPPORT (1)
211+
/* @brief FLEXIO support reset from RSTCTL */
212+
#define FSL_FEATURE_FLEXIO_HAS_RESET (0)
207213
/* @brief Has Shifter Status Register (FLEXIO_SHIFTSTAT) */
208214
#define FSL_FEATURE_FLEXIO_HAS_SHIFTER_STATUS (1)
209215
/* @brief Has Pin Data Input Register (FLEXIO_PIN) */
210216
#define FSL_FEATURE_FLEXIO_HAS_PIN_STATUS (1)
211-
/* @brief Has pin input output related registers */
212-
#define FSL_FEATURE_FLEXIO_HAS_PIN_REGISTER (0)
213217
/* @brief Has Shifter Buffer N Nibble Byte Swapped Register (FLEXIO_SHIFTBUFNBSn) */
214218
#define FSL_FEATURE_FLEXIO_HAS_SHFT_BUFFER_NIBBLE_BYTE_SWAP (1)
215219
/* @brief Has Shifter Buffer N Half Word Swapped Register (FLEXIO_SHIFTBUFHWSn) */
@@ -226,10 +230,12 @@
226230
#define FSL_FEATURE_FLEXIO_VERID_RESET_VALUE (0x1010001)
227231
/* @brief Reset value of the FLEXIO_PARAM register */
228232
#define FSL_FEATURE_FLEXIO_PARAM_RESET_VALUE (0x2200808)
229-
/* @brief Represent the bit width of the TIMDCE field (FLEXIO_TIMCFGLn[TIMDEC]) */
230-
#define FSL_FEATURE_FLEXIO_TIMCFG_TIMDCE_FIELD_WIDTH (2)
231233
/* @brief Flexio DMA request base channel */
232234
#define FSL_FEATURE_FLEXIO_DMA_REQUEST_BASE_CHANNEL (0)
235+
/* @brief Represent the bit width of the TIMDCE field (FLEXIO_TIMCFGLn[TIMDEC]) */
236+
#define FSL_FEATURE_FLEXIO_TIMCFG_TIMDCE_FIELD_WIDTH (2)
237+
/* @brief Has pin input output related registers */
238+
#define FSL_FEATURE_FLEXIO_HAS_PIN_REGISTER (0)
233239

234240
/* FLEXRAM module features */
235241

@@ -297,24 +303,31 @@
297303
/* @brief Has data register toggle DR_TOGGLE. */
298304
#define FSL_FEATURE_IGPIO_HAS_DR_TOGGLE (1)
299305

306+
/* GPT module features */
307+
308+
/* @brief Is affected by errata with ID 3777. */
309+
#define FSL_FEATURE_GPT_HAS_ERRATA_3777 (0)
310+
300311
/* LPI2C module features */
301312

302313
/* @brief Has separate DMA RX and TX requests. */
303314
#define FSL_FEATURE_LPI2C_HAS_SEPARATE_DMA_RX_TX_REQn(x) (0)
304315
/* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */
305316
#define FSL_FEATURE_LPI2C_FIFO_SIZEn(x) (4)
317+
/* @brief Has dedicated interrupt for master and slave. */
318+
#define FSL_FEATURE_LPI2C_HAS_ROLE_SPLIT_IRQ (0)
306319

307320
/* LPSPI module features */
308321

309-
/* @brief Capacity (number of entries) of the transmit/receive FIFO (or zero if no FIFO is available). */
322+
/* @brief Capacity (number of entries) of the transmit/receive FIFO. */
310323
#define FSL_FEATURE_LPSPI_FIFO_SIZEn(x) (16)
311324
/* @brief Has separate DMA RX and TX requests. */
312325
#define FSL_FEATURE_LPSPI_HAS_SEPARATE_DMA_RX_TX_REQn(x) (1)
313326
/* @brief Has CCR1 (related to existence of registers CCR1). */
314327
#define FSL_FEATURE_LPSPI_HAS_CCR1 (0)
315-
/* @brief Has no PCSCFG bit in CFGR1 register */
328+
/* @brief Has no PCSCFG bit in CFGR1 register. */
316329
#define FSL_FEATURE_LPSPI_HAS_NO_PCSCFG (0)
317-
/* @brief Has no WIDTH bits in TCR register */
330+
/* @brief Has no WIDTH bits in TCR register. */
318331
#define FSL_FEATURE_LPSPI_HAS_NO_MULTI_WIDTH (0)
319332

320333
/* LPUART module features */
@@ -383,12 +396,16 @@
383396
#define FSL_FEATURE_LPUART_HAS_GLOBAL (1)
384397
/* @brief Has LPUART_PINCFG. */
385398
#define FSL_FEATURE_LPUART_HAS_PINCFG (1)
399+
/* @brief Belong to LPFLEXCOMM */
400+
#define FSL_FEATURE_LPUART_IS_LPFLEXCOMM (0)
386401
/* @brief Has register MODEM Control. */
387402
#define FSL_FEATURE_LPUART_HAS_MCR (0)
388403
/* @brief Has register Half Duplex Control. */
389404
#define FSL_FEATURE_LPUART_HAS_HDCR (0)
390405
/* @brief Has register Timeout. */
391406
#define FSL_FEATURE_LPUART_HAS_TIMEOUT (0)
407+
/* @brief UART support swap TX and RX (has bit CTRL[SWAP]). */
408+
#define FSL_FEATURE_LPUART_HAS_CTRL_SWAP (0)
392409

393410
/* interrupt module features */
394411

@@ -445,7 +462,7 @@
445462
/* @brief Number of fault channel in each (e)FlexPWM module. */
446463
#define FSL_FEATURE_PWM_FAULT_CH_COUNT (1)
447464
/* @brief (e)FlexPWM has no WAITEN Bitfield In CTRL2 Register. */
448-
#define FSL_FEATURE_PWM_HAS_NO_WAITEN (1)
465+
#define FSL_FEATURE_PWM_HAS_NO_WAITEN (0)
449466
/* @brief If (e)FlexPWM has phase delay feature. */
450467
#define FSL_FEATURE_PWM_HAS_PHASE_DELAY (0)
451468
/* @brief If (e)FlexPWM has input filter capture feature. */
@@ -504,6 +521,8 @@
504521
#define FSL_FEATURE_SAI_HAS_CHANNEL_MODE (1)
505522
/* @brief Support synchronous with another SAI. */
506523
#define FSL_FEATURE_SAI_HAS_SYNC_WITH_ANOTHER_SAI (0)
524+
/* @brief Has Bit Clock Swap option (register bit fields RCR2[BCS]) */
525+
#define FSL_FEATURE_SAI_HAS_BIT_CLOCK_SWAP (1)
507526

508527
/* SNVS module features */
509528

mcux/mcux-sdk-ng/devices/RT/RT1010/MIMXRT1011/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/RT/RT1010/MIMXRT1011/system_MIMXRT1011.c

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
** MCUXpresso Compiler
1111
**
1212
** Reference manual: IMXRT1010RM Rev.1, 10/2021 | IMXRT1010SRM Rev.0
13-
** Version: rev. 1.2, 2021-08-10
14-
** Build: b240823
13+
** Version: rev. 2.0, 2024-10-29
14+
** Build: b250520
1515
**
1616
** Abstract:
1717
** Provides a system configuration function and a global variable that
1818
** contains the system frequency. It configures the device and initializes
1919
** the oscillator (PLL) that is part of the microcontroller device.
2020
**
2121
** Copyright 2016 Freescale Semiconductor, Inc.
22-
** Copyright 2016-2024 NXP
22+
** Copyright 2016-2025 NXP
2323
** SPDX-License-Identifier: BSD-3-Clause
2424
**
2525
** http: www.nxp.com
@@ -34,14 +34,17 @@
3434
** Update header files to align with IMXRT1010RM Rev.B.
3535
** - rev. 1.2 (2021-08-10)
3636
** Update header files to align with IMXRT1010RM Rev.1.
37+
** - rev. 2.0 (2024-10-29)
38+
** Change the device header file from single flat file to multiple files based on peripherals,
39+
** each peripheral with dedicated header file located in periphN folder.
3740
**
3841
** ###################################################################
3942
*/
4043

4144
/*!
4245
* @file MIMXRT1011
43-
* @version 1.2
44-
* @date 2021-08-10
46+
* @version 2.0
47+
* @date 2024-10-29
4548
* @brief Device specific configuration file for MIMXRT1011 (implementation file)
4649
*
4750
* Provides a system configuration function and a global variable that contains

mcux/mcux-sdk-ng/devices/RT/RT1010/MIMXRT1011/system_MIMXRT1011.h

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
** MCUXpresso Compiler
1111
**
1212
** Reference manual: IMXRT1010RM Rev.1, 10/2021 | IMXRT1010SRM Rev.0
13-
** Version: rev. 1.2, 2021-08-10
14-
** Build: b240823
13+
** Version: rev. 2.0, 2024-10-29
14+
** Build: b250520
1515
**
1616
** Abstract:
1717
** Provides a system configuration function and a global variable that
1818
** contains the system frequency. It configures the device and initializes
1919
** the oscillator (PLL) that is part of the microcontroller device.
2020
**
2121
** Copyright 2016 Freescale Semiconductor, Inc.
22-
** Copyright 2016-2024 NXP
22+
** Copyright 2016-2025 NXP
2323
** SPDX-License-Identifier: BSD-3-Clause
2424
**
2525
** http: www.nxp.com
@@ -34,14 +34,17 @@
3434
** Update header files to align with IMXRT1010RM Rev.B.
3535
** - rev. 1.2 (2021-08-10)
3636
** Update header files to align with IMXRT1010RM Rev.1.
37+
** - rev. 2.0 (2024-10-29)
38+
** Change the device header file from single flat file to multiple files based on peripherals,
39+
** each peripheral with dedicated header file located in periphN folder.
3740
**
3841
** ###################################################################
3942
*/
4043

4144
/*!
4245
* @file MIMXRT1011
43-
* @version 1.2
44-
* @date 2021-08-10
46+
* @version 2.0
47+
* @date 2024-10-29
4548
* @brief Device specific configuration file for MIMXRT1011 (header file)
4649
*
4750
* Provides a system configuration function and a global variable that contains

mcux/mcux-sdk-ng/devices/RT/RT1010/MIMXRT1011/variable.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#### chip related
66
include(${SdkRootDirPath}/devices/RT/variable.cmake)
77
mcux_set_variable(device MIMXRT1011)
8+
mcux_set_variable(device_root devices)
89
mcux_set_variable(soc_series RT1010)
910
mcux_set_variable(soc_periph periph)
1011

0 commit comments

Comments
 (0)