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_ITM)
48#include <cmsis_device.h>
67#if defined(__ARM_ARCH_7M__) || defined(__ARM_ARCH_7EM__)
78#if !defined(OS_INTEGER_TRACE_ITM_STIMULUS_PORT)
79#define OS_INTEGER_TRACE_ITM_STIMULUS_PORT (0)
83 write (
const void* buf, std::size_t nbyte)
85 if (buf ==
nullptr || nbyte == 0)
90 const char* cbuf = (
const char*) buf;
92 for (
size_t i = 0; i < nbyte; i++)
95 if (((ITM->TCR & ITM_TCR_ITMENA_Msk) == 0)
112 return (ssize_t) nbyte;
117#error "ITM available only on ARCH 7M"
#define OS_INTEGER_TRACE_ITM_STIMULUS_PORT
Define the ITM stimulus port used for the trace messages.
ssize_t write(const void *buf, std::size_t nbyte)
Write the given number of bytes to the trace output channel.