Gary-Hobson commented on code in PR #7554:
URL: https://github.com/apache/incubator-nuttx/pull/7554#discussion_r1029629217


##########
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:
   Yes, I understand their difference:
   The config with prompt can be selected by the user
   config without prompt can only be selected by other options
   
   Here, it is a config with a prompt, which is used to choose to register 
/dev/rtt0
   If other channels are registered, I want rtt0 to be registered as well (as 
it is always initialized)



-- 
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

Reply via email to