13#pragma clang diagnostic ignored "-Wempty-translation-unit"
18#if defined(__ARM_EABI__)
24#if defined(OS_USE_OS_APP_CONFIG_H)
25#include <cmsis-plus/os-app-config.h>
28#if defined(OS_USE_TRACE_SEGGER_RTT)
33#include <cmsis_device.h>
35#include "SEGGER_RTT.h"
55#pragma GCC diagnostic push
58#pragma GCC diagnostic ignored "-Wold-style-cast"
61 SCB->SCR &= ~SCB_SCR_SLEEPDEEP_Msk;
63#pragma GCC diagnostic pop
70 write (
const void* buf, std::size_t nbyte)
72 if (buf ==
nullptr || nbyte == 0)
77 if (nbyte > BUFFER_SIZE_UP)
88 rtos::interrupts::critical_section ics;
89 ret =
static_cast<ssize_t
> (SEGGER_RTT_WriteNoLock (0, buf, nbyte));
99 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.