mirror of https://github.com/wolfSSL/wolfBoot.git
Add LPUART1 IO init. Add automated testing for RT1040.
parent
0f25c80114
commit
aaac032566
|
@ -22,6 +22,12 @@ jobs:
|
||||||
# arch: riscv
|
# arch: riscv
|
||||||
# config-file: ./config/examples/hifive.config
|
# config-file: ./config/examples/hifive.config
|
||||||
|
|
||||||
|
imx_rt1040_test:
|
||||||
|
uses: ./.github/workflows/test-build-mcux-sdk.yml
|
||||||
|
with:
|
||||||
|
arch: arm
|
||||||
|
config-file: ./config/examples/imx-rt1040.config
|
||||||
|
|
||||||
imx_rt1050_test:
|
imx_rt1050_test:
|
||||||
uses: ./.github/workflows/test-build-mcux-sdk.yml
|
uses: ./.github/workflows/test-build-mcux-sdk.yml
|
||||||
with:
|
with:
|
||||||
|
|
11
hal/imx_rt.c
11
hal/imx_rt.c
|
@ -715,6 +715,17 @@ void uart_init(void)
|
||||||
lpuart_config_t config;
|
lpuart_config_t config;
|
||||||
uint32_t uartClkSrcFreq = 20000000U; /* 20 MHz */
|
uint32_t uartClkSrcFreq = 20000000U; /* 20 MHz */
|
||||||
|
|
||||||
|
#if UART_BASEADDR == LPUART1
|
||||||
|
/* Configure the UART IO pins for LPUART1
|
||||||
|
* Tested with RT1040, RT1050, RT1062 and RT1064
|
||||||
|
*/
|
||||||
|
CLOCK_EnableClock(kCLOCK_Iomuxc);
|
||||||
|
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_12_LPUART1_TX, 0U);
|
||||||
|
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_13_LPUART1_RX, 0U);
|
||||||
|
IOMUXC_SetPinConfig(IOMUXC_GPIO_AD_B0_12_LPUART1_TX, 0x10B0U);
|
||||||
|
IOMUXC_SetPinConfig(IOMUXC_GPIO_AD_B0_13_LPUART1_RX, 0x10B0U);
|
||||||
|
#endif
|
||||||
|
|
||||||
LPUART_GetDefaultConfig(&config);
|
LPUART_GetDefaultConfig(&config);
|
||||||
config.baudRate_Bps = UART_BAUDRATE;
|
config.baudRate_Bps = UART_BAUDRATE;
|
||||||
config.enableTx = true;
|
config.enableTx = true;
|
||||||
|
|
Loading…
Reference in New Issue