Skip to content

Conversation

@tomjielii
Copy link
Contributor

@tomjielii tomjielii commented Sep 12, 2025

拉取/合并请求描述:(PR description)

[

为什么提交这份PR (why to submit this PR)

补充 EK-RA2E2 的驱动支持
包括 i2c,spi,adc,pwm,flash,gpio interrupt support

你的解决方案是什么 (what is your solution)

请提供验证的bsp和config (provide the config and bsp)

  • BSP: bsp/renesas/ra2e2-ek
  • .config: 启用 CONFIG_RT_USING_EVENT; CONFIG_RT_NAME_MAX 修改为 16
  • action:

]

当前拉取/合并请求的状态 Intent for your PR

必须选择一项 Choose one (Mandatory):

  • 本拉取/合并请求是一个草稿版本 This PR is for a code-review and is intended to get feedback
  • 本拉取/合并请求是一个成熟版本 This PR is mature, and ready to be integrated into the repo

代码质量 Code Quality:

我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following:

  • 已经仔细查看过代码改动的对比 Already check the difference between PR and old code
  • 代码风格正确,包括缩进空格,命名及其他风格 Style guide is adhered to, including spacing, naming and other styles
  • 没有垃圾代码,代码尽量精简,不包含#if 0代码,不包含已经被注释了的代码 All redundant code is removed and cleaned up
  • 所有变更均有原因及合理的,并且不会影响到其他软件组件代码或BSP All modifications are justified and not affect other components or BSP
  • 对难懂代码均提供对应的注释 I've commented appropriately where code is tricky
  • 代码是高质量的 Code in this PR is of high quality
  • 已经使用formatting 等源码格式化工具确保格式符合RT-Thread代码规范 This PR complies with RT-Thread code specification
  • 如果是新增bsp, 已经添加ci检查到.github/ALL_BSP_COMPILE.json 详细请参考链接BSP自查

tomjielii and others added 30 commits August 20, 2025 00:04
[bsp][renesas] add EK-RA2E2 MDK support
* 添加了spim的底层驱动和设备驱动

* 添加了nrf52840 的spim底层驱动和设备驱动

* 添加了spim的底层驱动和设备驱动

* 添加了spim的底层驱动和设备驱动

* 代码规范

* 1. 在rt-thread\bsp\nrf5x\nrf52840\.ci\attachconfig\ci.attachconfig.yml中添加了spim的相关设置。
devices.spim:
    kconfig:
      - CONFIG_RT_USING_SPIM=y
      - CONFIG_BSP_USING_SPIM=y
2. nrfx_dpim.h 注释中纠正了错误的拼写
3. 多个文件中:nrfx_spim.c drv_spim.c drv_spim.h 删减了多余的宏定义:USING_SPI_DMA
4. nrfx_spim.c中删除了DMA_TRANS_MIN_LEN,该宏定义定义了spi+dma最小传输字节,直接定义20。
This commit introduces the PDMA (Peripheral DMA) driver for K230 SoC,
providing essential DMA capabilities for peripheral data transfers.

Key features implemented:
1. PDMA channel request/release management
2. Channel start/stop control
3. Interrupt callback registration
4. Data transfer between device ports and DDR memory

The driver includes:
- Core driver implementation (drv_pdma.c/h)
- Build system support (SConscript)
- Basic test cases (test_pdma.c)

Tested with:
- PDMA channel request/release
- DDR to UART TX FIFO transfers
- UART RX FIFO to DDR transfers

Signed-off-by: eatvector <2302147681@qq.com>
Fixes: 62f3fb4: fix(kernel)/improve(utest):fix the legacy issue related to the length of the object name version RT-Thread#10537

After this patch, if length of object name exceeds (RT_NAME_MAX - 1),
RTT will assert and oops when runing, but not in period of building.
Though I don't think it's a good solution, but don't want to argue more
about this.

Old RT_NAME_MAX is 8 for k230, and some object names, such as
"hwtimer0", which name length is 8, breaking the new rule.

Just update configuration of k230 bsp and increase RT_NAME_MAX from
8 to 16, which should be long enough for k230.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
Originally, the interrupt definitions of various peripherals
were distributed in various peripheral drivers, resulting
in duplicate definitions. Now they are defined in one place.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
Added a temperature sensor driver and a test file test_ts.c.
The test uses temperature sensor to measure the chip temperature,
to check if the driver works correctly.

Signed-off-by: XU HU 1337858472@qq.com
* update nxp mcxa driver to support frdm-mcxa346

* update NXP bsp README

* update frdm-mcxa346 project

[bsp][renesas]add EK-RA2E2 mdk support
* [component][net][at] at_client增加deInit接口

* [component][net][at] at_client优化serial_v2适配
wdfk-prog and others added 21 commits September 11, 2025 22:50
Signed-off-by: GuEe-GUI <2991707448@qq.com>
Refer to the issue described in PR RT-Thread#10599. This was a
temporary fix at that time.

After further research, we discovered that this issue
can be addressed using the "@cond" command supported
by Doxygen.

Since we currently do not intend to generate two sets
of documentation for UP and MP when generating Doxygen
documentation, the current solution is to generate only
MP documentation by default. For functions defined in
MP but not in UP, we will use the "@note" command in
the function's Doxygen comment to indicate whether the
function supports both UP and MP, or only MP.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
[bsp][renesas] add spi device option to Kconfig, disabled by default

[bsp][renesas] add timer pwm function support, disabled by default

[bsp][renesas] fixed the compile error in drv_gpio.c

[bsp][renesas] add adc device option to Kconfig, disabled by default

[bsp][renesas] support code flash operations
@github-actions github-actions bot added BSP action github action yml imporve BSP: Renesas BSP related with Renesas labels Sep 12, 2025
@github-actions
Copy link

github-actions bot commented Sep 12, 2025

📌 Code Review Assignment

🏷️ Tag: bsp_k230

Reviewers: unicornx

Changed Files (Click to expand)
  • bsp/k230/drivers/interdrv/uart/drv_uart.c
  • bsp/k230/drivers/utest/SConscript

🏷️ Tag: bsp_renesas

Reviewers: kurisaW

Changed Files (Click to expand)
  • bsp/renesas/libraries/HAL_Drivers/drivers/config/drv_config.h
  • bsp/renesas/libraries/HAL_Drivers/drivers/config/ra2e2/adc_config.h
  • bsp/renesas/libraries/HAL_Drivers/drivers/config/ra2e2/pwm_config.h
  • bsp/renesas/libraries/HAL_Drivers/drivers/drv_flash.c
  • bsp/renesas/libraries/HAL_Drivers/drivers/drv_gpio.c
  • bsp/renesas/libraries/HAL_Drivers/drivers/drv_i2c.c
  • bsp/renesas/ra2e2-ek/.config
  • bsp/renesas/ra2e2-ek/.secure_azone
  • bsp/renesas/ra2e2-ek/.secure_xml
  • bsp/renesas/ra2e2-ek/.settings/standalone.prefs
  • bsp/renesas/ra2e2-ek/SConstruct
  • bsp/renesas/ra2e2-ek/board/Kconfig
  • bsp/renesas/ra2e2-ek/board/ports/fal_cfg.h
  • bsp/renesas/ra2e2-ek/buildinfo.gpdsc
  • bsp/renesas/ra2e2-ek/configuration.xml
  • bsp/renesas/ra2e2-ek/ra/fsp/src/bsp/cmsis/Device/RENESAS/Source/startup.c
  • bsp/renesas/ra2e2-ek/ra_gen/pin_data.c
  • bsp/renesas/ra2e2-ek/rtconfig.h
  • bsp/renesas/ra2e2-ek/via/rasc_armclang.via

🏷️ Tag: workflow

Reviewers: Rbb666 kurisaW supperthomas

Changed Files (Click to expand)
  • .github/workflows/utest_auto_run.yml

📊 Current Review Status (Last Updated: 2025-09-12 22:15 CST)

  • Rbb666 Pending Review
  • kurisaW Pending Review
  • supperthomas Pending Review
  • unicornx Pending Review

📝 Review Instructions

  1. 维护者可以通过单击此处来刷新审查状态: 🔄 刷新状态
    Maintainers can refresh the review status by clicking here: 🔄 Refresh Status

  2. 确认审核通过后评论 LGTM/lgtm
    Comment LGTM/lgtm after confirming approval

  3. PR合并前需至少一位维护者确认
    PR must be confirmed by at least one maintainer before merging

ℹ️ 刷新CI状态操作需要具备仓库写入权限。
ℹ️ Refresh CI status operation requires repository Write permission.

@tomjielii tomjielii closed this Sep 12, 2025
@tomjielii tomjielii reopened this Sep 12, 2025
@tomjielii tomjielii closed this Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action github action yml imporve BSP: Renesas BSP related with Renesas BSP

Projects

None yet

Development

Successfully merging this pull request may close these issues.