Conversation
|
Duplicate of #10741? |
|
Yes - did I mention that I hate the stale bot?! Anyhow, seems its the good old 'better not merge the quick fix but wait another 1-1000 years for the superb generic solution' problem. In #10741 two people talked about something greater and better, but appearently nothing happended, right? |
Yeah, better is the enemy of good enough... Anyhow, the other PR is almost identical, with an added warning when develhelp is enabled (nice to have), and a probably needed fix for VFS. So I suggest going with that, also in light of the current discussion about ignoring previous work. @haukepetersen ok with you? |
|
of course! All I am interested in is a fix to my problem at hand, don't care who fixes it :-) |
|
#10741 is merged and provides the same thing. So closing this one. |
Contribution description
Right now, almost every platform is build using either
stdio_uartorstdio_rttas backend for outputting STDIO, even applications liketests/minimalthat don't even use any STDIO. As this might be ok for code size reasons, this behavior is quite bad in terms of power consumption. In the case ofstdio_uart, the configured UART device is always initialized and activated and thereby consuming significant power - if when not used...This PR provides a very simple way for disabling the STDIO in/output by simply doing nothing on calls to
stdio_init/read/write(), and hence it will prevent the system from initialization unused/unwanted hardware peripherals ans such.Caveat: all platforms that manually specify a
stdio_xmodule at the moment will not compile ifUSEMODULE += stdio_noneis specified manually, as those preconfigured modules will collide withstdio_none. I haven't figured out a good way to handle that, yet.Testing procedure
Compile any application (e.g.
hello-world) for any board that is usingstdio_uartas default. Usingmake info-modulesyou can verify, that withstdio_noneno uart dependencies will be pulled.Issues/PRs references
none