14#pragma clang diagnostic ignored "-Wempty-translation-unit"
19#if defined(__ARM_EABI__)
25#if defined(OS_USE_OS_APP_CONFIG_H)
26#include <cmsis-plus/os-app-config.h>
29#if defined(OS_USE_TRACE_SEGGER_RTT)
34#include <cmsis_device.h>
36#include "SEGGER_RTT.h"
55 SCB->SCR &= ~SCB_SCR_SLEEPDEEP_Msk;
61 write (
const void* buf, std::size_t nbyte)
63 if (buf ==
nullptr || nbyte == 0)
68 if (nbyte > BUFFER_SIZE_UP)
75 rtos::interrupts::critical_section ics;
76 ret = (ssize_t) SEGGER_RTT_WriteNoLock (0, buf, nbyte);
84 while (_SEGGER_RTT.aUp[0].WrOff != _SEGGER_RTT.aUp[0].RdOff)
ssize_t write(const void *buf, std::size_t nbyte)
Write the given number of bytes to the trace output channel.
void flush(void)
Flush the output.
Single file µOS++ RTOS definitions.