Kconfig 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. menu "Newlib"
  2. choice NEWLIB_STDOUT_LINE_ENDING
  3. prompt "Line ending for UART output"
  4. default NEWLIB_STDOUT_LINE_ENDING_CRLF
  5. help
  6. This option allows configuring the desired line endings sent to UART
  7. when a newline ('\n', LF) appears on stdout.
  8. Three options are possible:
  9. CRLF: whenever LF is encountered, prepend it with CR
  10. LF: no modification is applied, stdout is sent as is
  11. CR: each occurence of LF is replaced with CR
  12. This option doesn't affect behavior of the UART driver (drivers/uart.h).
  13. config NEWLIB_STDOUT_LINE_ENDING_CRLF
  14. bool "CRLF"
  15. config NEWLIB_STDOUT_LINE_ENDING_LF
  16. bool "LF"
  17. config NEWLIB_STDOUT_LINE_ENDING_CR
  18. bool "CR"
  19. endchoice
  20. choice NEWLIB_STDIN_LINE_ENDING
  21. prompt "Line ending for UART input"
  22. default NEWLIB_STDIN_LINE_ENDING_CR
  23. help
  24. This option allows configuring which input sequence on UART produces
  25. a newline ('\n', LF) on stdin.
  26. Three options are possible:
  27. CRLF: CRLF is converted to LF
  28. LF: no modification is applied, input is sent to stdin as is
  29. CR: each occurence of CR is replaced with LF
  30. This option doesn't affect behavior of the UART driver (drivers/uart.h).
  31. config NEWLIB_STDIN_LINE_ENDING_CRLF
  32. bool "CRLF"
  33. config NEWLIB_STDIN_LINE_ENDING_LF
  34. bool "LF"
  35. config NEWLIB_STDIN_LINE_ENDING_CR
  36. bool "CR"
  37. endchoice
  38. config NEWLIB_NANO_FORMAT
  39. bool "Enable 'nano' formatting options for printf/scanf family"
  40. default n
  41. help
  42. ESP32 ROM contains parts of newlib C library, including printf/scanf family
  43. of functions. These functions have been compiled with so-called "nano"
  44. formatting option. This option doesn't support 64-bit integer formats and C99
  45. features, such as positional arguments.
  46. For more details about "nano" formatting option, please see newlib readme file,
  47. search for '--enable-newlib-nano-formatted-io':
  48. https://sourceware.org/newlib/README
  49. If this option is enabled, build system will use functions available in
  50. ROM, reducing the application binary size. Functions available in ROM run
  51. faster than functions which run from flash. Functions available in ROM can
  52. also run when flash instruction cache is disabled.
  53. If you need 64-bit integer formatting support or C99 features, keep this
  54. option disabled.
  55. endmenu # Newlib