45 #ifndef _SMING_CORE_PLATFORM_OS_MESSAGE_INTERCEPTOR_H_ 46 #define _SMING_CORE_PLATFORM_OS_MESSAGE_INTERCEPTOR_H_ 48 #include "Data/Buffer/LineBuffer.h" 60 typedef void (*OsMessageCallback)(
OsMessage& message);
81 void begin(OsMessageCallback callback);
91 static void static_putc(
char c)
98 OsMessageCallback callback =
nullptr;
void end()
Stop message interception and revert to output via uart driver.
Class to handle interception of OS messages.
Definition: OsMessageInterceptor.h:67
void begin(OsMessageCallback callback)
Enable message interception.