Gavin Liu 9791c31c1b imxrt:uart: Add PINs init for each uart port
Add PINs init function based on the selected UART port.

In general, user should configure all necessary PINs based on
the specific imxrt board in:
    bsp/imxrt/xxxx/board/MCUX_Config/pin_mux.c
There is a convenient GUI tool named MCUXpresso Config Tools,
it's free and can be obtained from NXP offical website. Open
the file:
    bsp/imxrt/imxrt1052-nxp-evk/board/MCUX_Config/MCUX_Config.mex
with MCUXpresso Config Tools, set the necessary PINs (or clocks)
and generate the new code of pin_mux.c (or clock_config.c), the
project can get right configurations based on specific imxrt
board.

But, there is no relation between RT-Thread Kconfig and MCUXpresso
Config Tools. User selects one driver in RT-Thread menuconfig, then
the ping_mux.c should be udpated by MCUXpresso Config Tools to set
the right PIN configurations for the selected driver. It's clear
but a little complex.

We add the PIN init functions for some drivers in the board.c file,
1. It's convenient to usr a driver in RT-Thread. Just select the
   driver, then the code will include all necessary parts, and the
   driver can work well.
2. User can also configure the PINs with MCUXpresso Config Tools.
3. The drivers in bsp/imxrt/libraries/drivers are common for all
   imxrt boards. They may have different PIN configurations based
   on different hardware design. So we put the PIN init functions
   in each board.c file following each different imxrt board.

Signed-off-by: Gavin Liu <gavin-liugang@outlook.com>
2019-09-19 11:13:57 +08:00
..
2019-09-03 11:41:22 +08:00
2019-08-11 18:14:44 +08:00
2019-06-17 18:53:34 +08:00

IMXRT BSP 说明

IMXRT 系列 BSP 目前支持情况如下表所示:

BSP 文件夹名称 开发板名称
i.MX RT1015 系列
暂无
i.MX RT1020系列
暂无
i.MX RT1050 系列
imxrt1052-atk-commander 正点原子 IMXRT 号令者
imxrt1052-fire-pro 野火 i.MX RT1052 EVK PRO
imxrt1052-nxp-evk 恩智浦 i.MX RT1050 EVKB
i.MX RT1060 系列
暂无
i.MX RT1064 系列
imxrt1064-nxp-evk 恩智浦 i.MX RT1064 EVK

可以通过阅读相应 BSP 下的 README 来快速上手,如果想要使用 BSP 更多功能可参考 docs 文件夹下提供的说明文档,如下表所示:

BSP 使用教程 简介
外设驱动使用教程 讲解 BSP 上更多外设驱动的使用方法
外设驱动介绍与应用 讲解 IMXRT 系列 BSP 驱动的支持情况,以及如何利用驱动框架开发应用程序
BSP 制作与提交 简介
BSP 制作教程 讲解 IMXRT 系列 BSP 的制作方法,以及在制作 BSP 和提交 BSP 时应当遵守的规范
外设驱动添加指南 讲解 BSP 添加更多设备驱动的方法