| * Copyright (c) 2018 omSquare s.r.o. |
| * SPDX-License-Identifier: Apache-2.0 |
| * Common mutex for locking access to terminal buffer. |
| * Note that SEGGER uses same lock macros for both SEGGER_RTT_Write and |
| * SEGGER_RTT_Read functions. Because of this we are not able generally |
| * separate up and down access using two mutexes until SEGGER library fix |
| * If sharing access cause performance problems, consider using another |
| K_MUTEX_DEFINE(rtt_term_mutex); |
| static int rtt_init(const struct device *unused) |
| SYS_INIT(rtt_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_OBJECTS); |