Imxrt1180 nxp evk lpadc#11529
Conversation
…test(no DMA and ISR).
… on MCU Config software.
…able LPADC1 test easily.
|
|
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
| MCUX_Config/pin_mux.c | ||
| MCUX_Config_LPADC1/clock_config.c | ||
| MCUX_Config_LPADC1/pin_mux.c | ||
| MCUX_Config_LPADC1/peripherals.c |
There was a problem hiding this comment.
这边还是有上次PR中提到的问题,麻烦SConscript中的src不用改,保持原来:
MCUX_Config/clock_config.c
MCUX_Config/pin_mux.c
| if GetDepend(['BSP_USING_QSPI_FLASH_FS']): | ||
| src += ['ports/drv_flexspi_nor_flash.c', 'ports/fal_flash_port.c'] | ||
|
|
||
| CPPPATH = [cwd,cwd + '/MCUX_Config',cwd + '/ports'] |
| #include <rtdevice.h> | ||
| #include <drv_gpio.h> | ||
| #include <fsl_rgpio.h> | ||
|
|
| { | ||
| } | ||
| #else | ||
| for(i=0;i<7;i++) { |
There was a problem hiding this comment.
代码需要格式化,可以查看rtthread仓库根目录下的.clang-format
There was a problem hiding this comment.
checked out formatting tool, reformatted the codes.

拉取/合并请求描述:(PR description)
[
these channels A1_4, A1_6, A1_7, B1_5, B1_6, B1_7 are routed to LPADC1 peripheral based on CM33 core from XIP boot-up, and multi-channel sampling is enabled with DMA. They are configured to VDDA_ADC_1P8 as VREFH source, full scale input(max 1.8V), you can check CM33/board/MIMXRT1180-CM33-ADC.mex and cm33/figures for more details.
all the configured channels are verified in msh, but drv_adc can only support A1_4, B1_5, A1_6 and A1_7, this is a limitation of driver.
为什么提交这份PR (why to submit this PR)
submit BSP development task for imxrt1180-nxp-bsp
你的解决方案是什么 (what is your solution)
请提供验证的bsp和config (provide the config and bsp)
]
当前拉取/合并请求的状态 Intent for your PR
必须选择一项 Choose one (Mandatory):
代码质量 Code Quality:
我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following:
#if 0代码,不包含已经被注释了的代码 All redundant code is removed and cleaned up