tracing: fix conflict with RTT locking

Make custom RTT locking configurable and select it where it is needed.
When using RTT for tracing we want to use the default locking.

Update both segger and tracerecorder modules to support that.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2021-05-20 10:27:13 -04:00 committed by Kumar Gala
commit 108129cf7d
5 changed files with 10 additions and 2 deletions

View file

@ -16,6 +16,11 @@ config USE_SEGGER_RTT
if USE_SEGGER_RTT
config SEGGER_RTT_CUSTOM_LOCKING
bool "Enable custom locking"
help
Enable custom locking using a mutex.
config SEGGER_RTT_MAX_NUM_UP_BUFFERS
int "Maximum number of up-buffers"
default 3