Skip to content

Commit 0bfb9d6

Browse files
authored
Merge pull request hathach#1543 from robert-hh/1170_0.13.0
mimxrt: Change the definitions for MIMXRT boards.
2 parents ecb8994 + 6da1e93 commit 0bfb9d6

File tree

16 files changed

+35
-19
lines changed

16 files changed

+35
-19
lines changed

examples/host/bare_api/only.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ mcu:LPC177X_8X
33
mcu:LPC18XX
44
mcu:LPC40XX
55
mcu:LPC43XX
6+
mcu:MIMXRT
67
mcu:MIMXRT10XX
8+
mcu:MIMXRT11XX
79
mcu:RP2040
810
mcu:MSP432E4
911
mcu:RX65X

examples/host/cdc_msc_hid/only.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ mcu:LPC177X_8X
33
mcu:LPC18XX
44
mcu:LPC40XX
55
mcu:LPC43XX
6+
mcu:MIMXRT
67
mcu:MIMXRT10XX
8+
mcu:MIMXRT11XX
79
mcu:RP2040
810
mcu:MSP432E4
911
mcu:RX65X

examples/host/hid_controller/only.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ mcu:LPC177X_8X
33
mcu:LPC18XX
44
mcu:LPC40XX
55
mcu:LPC43XX
6+
mcu:MIMXRT
67
mcu:MIMXRT10XX
8+
mcu:MIMXRT11XX
79
mcu:RP2040
810
mcu:MSP432E4
911
mcu:RX65X

hw/bsp/board_mcu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
#elif CFG_TUSB_MCU == OPT_MCU_VALENTYUSB_EPTRI
111111
// no header needed
112112

113-
#elif CFG_TUSB_MCU == OPT_MCU_MIMXRT10XX
113+
#elif CFG_TUSB_MCU == OPT_MCU_MIMXRT
114114
#include "fsl_device_registers.h"
115115

116116
#elif CFG_TUSB_MCU == OPT_MCU_NUC120

hw/bsp/f1c100s/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ Flash: `make BOARD=f1c100s flash` will write the image to SPI flash, and then re
1717

1818
## TODO
1919

20-
* Add F1C100s to `#if CFG_TUSB_MCU == OPT_MCU_LPC43XX || CFG_TUSB_MCU == OPT_MCU_LPC18XX || CFG_TUSB_MCU == OPT_MCU_MIMXRT10XX` high speed MCU check in examples (maybe we should extract the logic?)
20+
* Add F1C100s to `#if CFG_TUSB_MCU == OPT_MCU_LPC43XX || CFG_TUSB_MCU == OPT_MCU_LPC18XX || CFG_TUSB_MCU == OPT_MCU_MIMXRT` high speed MCU check in examples (maybe we should extract the logic?)

hw/bsp/imxrt/boards/mimxrt1050_evkb/board.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
// UART
4747
#define UART_PORT LPUART1
48-
#define UART_RX_PINMUX IOMUXC_GPIO_AD_B0_13_LPUART1_RX
49-
#define UART_TX_PINMUX IOMUXC_GPIO_AD_B0_12_LPUART1_TX
48+
#define UART_RX_PINMUX IOMUXC_GPIO_AD_B0_13_LPUART1_RXD
49+
#define UART_TX_PINMUX IOMUXC_GPIO_AD_B0_12_LPUART1_TXD
5050

5151
#endif /* BOARD_H_ */

hw/bsp/imxrt/family.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ CFLAGS += \
1313
-D__ARMVFP__=0 -D__ARMFPV5__=0\
1414
-DXIP_EXTERNAL_FLASH=1 \
1515
-DXIP_BOOT_HEADER_ENABLE=1 \
16-
-DCFG_TUSB_MCU=OPT_MCU_MIMXRT10XX
16+
-DCFG_TUSB_MCU=OPT_MCU_MIMXRT
1717

1818
ifdef BOARD_TUD_RHPORT
1919
CFLAGS += -DBOARD_TUD_RHPORT=$(BOARD_TUD_RHPORT)

hw/mcu/nxp/mcux-sdk

src/class/audio/audio_device.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
// Use ring buffer if it's available, some MCUs need extra RAM requirements
6868
#ifndef TUD_AUDIO_PREFER_RING_BUFFER
69-
#if CFG_TUSB_MCU == OPT_MCU_LPC43XX || CFG_TUSB_MCU == OPT_MCU_LPC18XX || CFG_TUSB_MCU == OPT_MCU_MIMXRT10XX
69+
#if CFG_TUSB_MCU == OPT_MCU_LPC43XX || CFG_TUSB_MCU == OPT_MCU_LPC18XX || CFG_TUSB_MCU == OPT_MCU_MIMXRT
7070
#define TUD_AUDIO_PREFER_RING_BUFFER 0
7171
#else
7272
#define TUD_AUDIO_PREFER_RING_BUFFER 1
@@ -102,7 +102,7 @@
102102
CFG_TUSB_MCU == OPT_MCU_GD32VF103 || \
103103
CFG_TUSB_MCU == OPT_MCU_LPC18XX || \
104104
CFG_TUSB_MCU == OPT_MCU_LPC43XX || \
105-
CFG_TUSB_MCU == OPT_MCU_MIMXRT10XX || \
105+
CFG_TUSB_MCU == OPT_MCU_MIMXRT || \
106106
CFG_TUSB_MCU == OPT_MCU_MSP432E4
107107
#if TUD_AUDIO_PREFER_RING_BUFFER
108108
#define USE_LINEAR_BUFFER 0

src/common/tusb_mcu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
// TODO USB0 has 5, USB1 has 6
7676
#define TUP_DCD_ENDPOINT_MAX 6
7777

78-
#elif TU_CHECK_MCU(OPT_MCU_MIMXRT10XX)
78+
#elif TU_CHECK_MCU(OPT_MCU_MIMXRT)
7979
#define TUP_USBIP_CHIPIDEA_HS
8080
#define TUP_USBIP_EHCI
8181

0 commit comments

Comments
 (0)