vfs: implement reading from UART

This commit is contained in:
Ivan Grokhotkov
2017-01-09 22:50:42 +08:00
parent 7f751fd0fe
commit 0d00a1ba01
5 changed files with 210 additions and 6 deletions

View File

@@ -134,6 +134,11 @@ config NEWLIB_STDOUT_ADDCR
cursor one line down, not also move it to the beginning of the line. This
is usually done by an added CR character. Enabling this will make the
standard output code automatically add a CR character before a LF.
With this option enabled, C standard library functions which read from UART
(like scanf) will convert "\r\n" character sequences back to "\n".
This option doesn't affect behavior of the UART driver (drivers/uart.h).
config NEWLIB_NANO_FORMAT
bool "Enable 'nano' formatting options for printf/scanf family"