JianyuWang0623 opened a new pull request, #20098:
URL: https://github.com/apache/nuttx/pull/20098
## Summary
Documents the per-service `console [<device>]` option added to nxinit
by the companion apache/nuttx-apps#3776.
`Documentation/applications/system/nxinit/index.rst` is nxinit's only
existing doc page. This adds `console` to the option list in "Services
and Options" and a dedicated subsection explaining:
- what the option does (open the given device, or
`CONFIG_SYSTEM_NXINIT_CONSOLE_DEV` if omitted, and dup it onto the
service's stdin/stdout/stderr before spawning);
- why a plain shell service needs it while `nsh` does not (`nsh`
already does the equivalent internally via `nsh_consolemain()`);
- why a USB gadget console (CDC-ACM/PL2303) additionally needs the
gadget itself brought up first (e.g. via `exec -- sercon`), since
the device does not exist until then, unlike a plain UART.
## Impact
Documentation only, no code change.
## Testing
```
$ tools/checkpatch.sh -g HEAD
✔️ All checks pass.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]