RT-Thread / RT-Thread/rt-thread

[Feature] rt_null.c 初始化顺序太低 无法作为默认的日志口

Open Beginner friendly
#11,472 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
12.2k
Forks
5.4k
Avg merge
4d 12h
Merged PRs (30d)
40

Description

Describe problem solved by the proposed feature

实际应用中 日志口与其它上行通信口复用,在需要调试时,特殊命令触发将上行协议通信口切换为常规日志口,但是如果想上电就不打印日志就需要将日志口切到无关的设备上,而 null设备就是一个理想的设备口,但是发现在初始化流程中 初始化日志口顺序比null高, 建议提高null初始顺序到 RT_USING_CONSOLE 之前

Describe your preferred solution

No response

Describe possible alternatives

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading rt_null.c and the initialization ordering around RT_USING_CONSOLE. Confirm how the null device and logging console are registered, then verify that the null device initializes early enough to serve as the default logging port and prevent startup logs from using the uplink port.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot, operating-systems
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.