This commit is contained in:
2020-11-17 12:01:15 +01:00
parent ccf6982b62
commit 23568db1b5
8 changed files with 137 additions and 165 deletions

View File

@ -3,8 +3,10 @@
#include <main.h>
#include <stdbool.h>
typedef enum {
LOG_NORMAL,
LOG_HIGH,
LOG_RED,
LOG_GREEN,
@ -22,10 +24,7 @@ void logFree();
// return value can be ignored, it is only used in test
int logMsg(const char *format, ...);
// in red
int errMsg(const char *format, ...);
int coloredMsg(const t_logColor color, const char *format, ...);
int coloredMsg(const t_logColor color, bool syslogToo, const char *format, ...);
void debugTxCpltCallback(UART_HandleTypeDef *huart);