2016-11-22 15:28:57 +01:00
|
|
|
#
|
|
|
|
# Copyright (c) 2016 Nordic Semiconductor ASA
|
|
|
|
#
|
2017-01-20 20:22:01 -05:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-11-22 15:28:57 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
config HAS_SEGGER_RTT
|
|
|
|
bool
|
2017-04-24 12:43:17 -07:00
|
|
|
|
2018-06-01 12:53:03 +02:00
|
|
|
if HAS_SEGGER_RTT
|
|
|
|
|
2018-03-03 16:11:24 -06:00
|
|
|
config SEGGER_SYSTEMVIEW
|
2017-04-24 12:43:17 -07:00
|
|
|
bool
|
|
|
|
prompt "Segger SystemView support"
|
2018-03-03 16:11:24 -06:00
|
|
|
select RTT_CONSOLE
|
2018-06-01 12:53:03 +02:00
|
|
|
|
|
|
|
config SEGGER_RTT_MAX_NUM_UP_BUFFERS
|
|
|
|
int "Maximum number of up-buffers"
|
|
|
|
default 3
|
|
|
|
|
|
|
|
config SEGGER_RTT_MAX_NUM_DOWN_BUFFERS
|
|
|
|
int "Maximum number of down-buffers"
|
|
|
|
default 3
|
|
|
|
|
|
|
|
config SEGGER_RTT_BUFFER_SIZE_UP
|
|
|
|
int "Size of the buffer for terminal output of target, up to host"
|
|
|
|
default 1024
|
|
|
|
|
|
|
|
config SEGGER_RTT_BUFFER_SIZE_DOWN
|
|
|
|
int "Size of the buffer for terminal input of target, from host"
|
|
|
|
default 16
|
|
|
|
|
|
|
|
config SEGGER_RTT_PRINTF_BUFFER_SIZE
|
|
|
|
int "Size of buffer for RTT printf to bulk-send chars via RTT"
|
|
|
|
default 64
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Mode for pre-initialized terminal channel (buffer 0)"
|
|
|
|
default SEGGER_RTT_MODE_NO_BLOCK_SKIP
|
|
|
|
|
|
|
|
config SEGGER_RTT_MODE_NO_BLOCK_SKIP
|
|
|
|
bool "Skip. Do not block, output nothing."
|
|
|
|
|
|
|
|
config SEGGER_RTT_MODE_NO_BLOCK_TRIM
|
|
|
|
bool "Trim: Do not block, output as much as fits."
|
|
|
|
|
|
|
|
config SEGGER_RTT_MODE_BLOCK_IF_FIFO_FULL
|
|
|
|
bool "Block: Wait until there is space in the buffer."
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config SEGGER_RTT_MODE
|
|
|
|
int
|
2018-07-05 17:44:45 +02:00
|
|
|
default 0
|
2018-06-01 12:53:03 +02:00
|
|
|
default 1 if SEGGER_RTT_MODE_NO_BLOCK_TRIM
|
2018-07-05 17:44:45 +02:00
|
|
|
default 2 if SEGGER_RTT_MODE_BLOCK_IF_FIFO_FULL
|
2018-06-01 14:10:17 +02:00
|
|
|
|
|
|
|
config SEGGER_RTT_MEMCPY_USE_BYTELOOP
|
|
|
|
bool "Use a simple byte-loop instead of standard memcpy"
|
|
|
|
|
2018-07-05 17:44:45 +02:00
|
|
|
endif
|