Repository navigation
drivers/misc: register rt_null at BOARD init for default console (#11472) - #11884
cms19859230182-lang wants to merge 1 commit into
Conversation
…Thread#11472) rt_console_set_device() is typically called in rt_hw_board_init() right after rt_components_board_init(). null was INIT_DEVICE (level 3), so it was not registered yet and could not be RT_CONSOLE_DEVICE_NAME. Raise to INIT_BOARD_EXPORT; null is a pure software sink with no HW deps. Co-Authored-By: Grok <seteiro@mail.grokbot.com>
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
📌 Code Review Assignment🏷️ Tag: componentsReviewers: @Maihuanyi Changed Files (Click to expand)
📊 Current Review Status (Last Updated: 2026-10-17 22:45 CST)
📝 Review Instructions
|
|
Related to #11472
动机
#11472:希望
RT_CONSOLE_DEVICE_NAME="null"在上电即可生效(日志口与通信口复用场景)。改动
null_device_init:INIT_DEVICE_EXPORT→INIT_BOARD_EXPORTrt_console_set_device使用测试
bsp/qemu-vexpress-a9scons -j8(uart0)RT_CONSOLE_DEVICE_NAME="null"编译 + QEMU:无横幅msh />rt_null.o落入.rti_fn.1未实现 early/normal console 拆分(Bernard 提到的另一方向);若需要可另开 issue/PR。
AI assisted by Grok.