29#pragma clang diagnostic ignored "-Wempty-translation-unit"
34#if defined(__ARM_EABI__)
40#include <cmsis-plus/os-app-config.h>
42#if defined(OS_USE_TRACE_SEGGER_RTT)
47#include <cmsis_device.h>
49#include "SEGGER_RTT.h"
68 SCB->SCR &= ~SCB_SCR_SLEEPDEEP_Msk;
74 write (
const void* buf, std::size_t nbyte)
76 if (buf ==
nullptr || nbyte == 0)
81 if (nbyte > BUFFER_SIZE_UP)
88 rtos::interrupts::critical_section ics;
89 ret = (ssize_t) SEGGER_RTT_WriteNoLock (0, buf, nbyte);
97 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.