[misc] Update CANopen packages and parameter storage configuration - #2038
Merged
Rbb666 merged 3 commits intoSep 11, 2026
Merged
Conversation
Synchronize the CanopenNode package configuration with the modular RT-Thread port layout. Split the monolithic Kconfig into dedicated core, demo, RT-Thread runtime, storage, CiA 401 and CiA 402 configuration files. Add the corresponding storage SCons source selection and synchronize the profile-specific configuration exposed by the current port.
…ackend Allow the parameter manager to explicitly select an application-defined scalar storage backend. Add AUTOGEN_PM_BACKEND_APP_DEFINED without changing the existing default backend. When selected, no package-provided scalar backend is enabled and the application can provide par_store_backend_get_api() and, when required, par_store_backend_bind(). Update the related Kconfig help text to document the backend contract.
Add the canopen-lely package for the Lely CANopen RT-Thread port. Provide package metadata and Kconfig options for the single-owner EV/IO2 runtime, CAN configuration, automatic initialization, logging and optional CANopen Master services. Register canopen-lely in the misc package index.
Rbb666
approved these changes
Sep 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
中文 PR Message
拉取/合并请求描述:(PR description)
[
为什么提交这份PR (why to submit this PR)
本 PR 同步
misc分类下几个相关 package 的最新配置和集成状态,主要包括:CanopenNode当前 RT-Thread port 的模块化 Kconfig 结构;autogen_parameter_manager增加应用自定义参数存储 backend 的显式配置;canopen-lely,将 Lely CANopen RT-Thread port 加入 package index。这些修改都属于 RT-Thread packages 仓库中的 package 配置与索引集成,不修改 RT-Thread 内核或 BSP。
你的解决方案是什么 (what is your solution)
CanopenNode
将原有集中在
misc/CanopenNode/Kconfig中的配置按照当前 port 的模块结构进行拆分,包括:同时增加对应的 Storage SCons source selection,根据 Kconfig 选择实际使用的 storage implementation。
根 Kconfig 继续负责 package 入口、模块引用以及版本选择。
autogen_parameter_manager
现有参数存储抽象已经允许应用通过 backend hooks 提供自己的 storage implementation,但 Kconfig 原先只能选择 package 提供的 AT24CXX 或 Flash-EE backend。
本 PR 增加:
选择该配置时不启用 package-provided scalar backend。
应用负责提供 strong:
par_store_backend_get_api()如果 backend 需要显式绑定过程,还可以覆盖:
par_store_backend_bind()现有默认 backend 保持不变,因此不会改变已有工程的默认选择。
canopen-lely
新增:
并在:
中注册
canopen-lely。该 package 为 Lely CANopen 的 RT-Thread port 提供配置入口,包括:
Lely runtime 使用
LELY_NO_THREADS=1,Lely EV/IO2/CANopen 对象由一个专用 RT-Thread owner thread 串行访问,异步 CAN、timer 和 status 事件转交给该 owner 处理。请提供验证的bsp和config (provide the config and bsp)
CanopenNode 验证配置:
autogen_parameter_manager 验证配置:
canopen-lely 验证配置:
提交前请使用实际 BSP 生成的
.config替换以上占位内容。]
当前拉取/合并请求的状态 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