Gary-Hobson commented on code in PR #7554: URL: https://github.com/apache/incubator-nuttx/pull/7554#discussion_r1029557456
########## drivers/segger/Kconfig: ########## @@ -79,3 +81,82 @@ config SEGGER_SYSVIEW_RAM_BASE endif endif + +config RTT_CONSOLE + bool "segger rtt console" + default n + select SERIAL_CONSOLE + select SEGGER_RTT + select SERIAL_RXDMA + select SERIAL_TXDMA + ---help--- + Enabling this option will use RTT as the terminal device, + which uses RTT channel 0 by default. + The buffer size of rtt channel 0 is configured by SEGGER_RTT_BUFFER_SIZE_UP + You need to turn off other console devices before turning it on + +if RTT_CONSOLE +config RTT_CONSOLE_TXBUF_SIZE + int "rtt console tx buffer size" + default 256 + ---help--- + Configure the rtt console tx buffer size + +config RTT_CONSOLE_RXBUF_SIZE + int "rtt console rx buffer size" + default 256 + ---help--- + Configure the rtt console rx buffer size +endif + +config RTT_SERIAL + bool "segger rtt serial " Review Comment: why, I don't think there's anything wrong with it register /dev/rtt0 only when CONFIG_RTT_SERIAL is enabled, and use it to select files for compilation -- 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: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org