|
38 | 38 | #include "evkmimxrt1060_flexspi_nor_config.h" |
39 | 39 | #define USE_GET_CONFIG |
40 | 40 | #endif |
| 41 | +#ifdef CPU_MIMXRT1042XJM5B |
| 42 | +#include "evkmimxrt1040_flexspi_nor_config.h" |
| 43 | +#endif |
41 | 44 | #ifdef CPU_MIMXRT1052DVJ6B |
42 | 45 | #include "evkbimxrt1050_flexspi_nor_config.h" |
43 | 46 | #endif |
@@ -277,7 +280,7 @@ const flexspi_nor_config_t __attribute__((section(".flash_config"))) qspiflash_c |
277 | 280 |
|
278 | 281 |
|
279 | 282 | /** Flash configuration in the .flash_config section of flash **/ |
280 | | -#ifdef CPU_MIMXRT1052DVJ6B |
| 283 | +#if defined(CPU_MIMXRT1042XJM5B) || defined(CPU_MIMXRT1052DVJ6B) |
281 | 284 |
|
282 | 285 | #ifdef CONFIG_FLASH_W25Q64JV |
283 | 286 | /* Winbond W25Q64JV */ |
@@ -543,11 +546,11 @@ const flexspi_nor_config_t __attribute__((section(".flash_config"))) qspiflash_c |
543 | 546 | .ipcmdSerialClkFreq = 0, |
544 | 547 | }; |
545 | 548 | #endif |
546 | | -#endif /* CPU_MIMXRT1052DVJ6B */ |
| 549 | +#endif /* CPU_MIMXRT1042XJM5B || CPU_MIMXRT1052DVJ6B */ |
547 | 550 |
|
548 | 551 |
|
549 | 552 | #ifndef __FLASH_BASE |
550 | | -#if defined(CPU_MIMXRT1052DVJ6B) || defined(CPU_MIMXRT1062DVL6A) |
| 553 | +#if defined(CPU_MIMXRT1042XJM5B) || defined(CPU_MIMXRT1052DVJ6B) || defined(CPU_MIMXRT1062DVL6A) |
551 | 554 | #define __FLASH_BASE 0x60000000 |
552 | 555 | #elif defined(CPU_MIMXRT1064DVL6A) |
553 | 556 | #define __FLASH_BASE 0x70000000 |
@@ -712,6 +715,17 @@ void uart_init(void) |
712 | 715 | lpuart_config_t config; |
713 | 716 | uint32_t uartClkSrcFreq = 20000000U; /* 20 MHz */ |
714 | 717 |
|
| 718 | +#if UART_BASEADDR == LPUART1 |
| 719 | + /* Configure the UART IO pins for LPUART1 |
| 720 | + * Tested with RT1040, RT1050, RT1062 and RT1064 |
| 721 | + */ |
| 722 | + CLOCK_EnableClock(kCLOCK_Iomuxc); |
| 723 | + IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_12_LPUART1_TX, 0U); |
| 724 | + IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_13_LPUART1_RX, 0U); |
| 725 | + IOMUXC_SetPinConfig(IOMUXC_GPIO_AD_B0_12_LPUART1_TX, 0x10B0U); |
| 726 | + IOMUXC_SetPinConfig(IOMUXC_GPIO_AD_B0_13_LPUART1_RX, 0x10B0U); |
| 727 | +#endif |
| 728 | + |
715 | 729 | LPUART_GetDefaultConfig(&config); |
716 | 730 | config.baudRate_Bps = UART_BAUDRATE; |
717 | 731 | config.enableTx = true; |
|
0 commit comments