You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
647 B

#include <eez/core/debug.h>
#include <eez/core/os.h>
#include "firmware.h"
namespace eez {
namespace debug {
void pushDebugTraceHook(const char *message, size_t messageLength) {
serialWrite("DEBUG: ");
osDelay(1);
serialWrite(message, messageLength);
}
void pushInfoTraceHook(const char *message, size_t messageLength) {
serialWrite("INFO: ");
osDelay(1);
serialWrite(message, messageLength);
}
void pushErrorTraceHook(const char *message, size_t messageLength) {
serialWrite("ERROR: ");
osDelay(1);
serialWrite(message, messageLength);
}
} // namespace debug
} // namespace eez