logger interrupt

This commit is contained in:
2020-11-10 16:30:26 +01:00
parent fa66527d9c
commit bf5d9b4bae
3 changed files with 22 additions and 0 deletions

View File

@ -1,8 +1,10 @@
#ifndef _LOGGER_H_
#define _LOGGER_H_
#include <main.h>
#define LOGGER_INTERRUPT
typedef enum {
LOG_HIGH,
@ -32,4 +34,9 @@ int coloredMsg(const t_logColor color, const char *format, ...);
// return value can be ignored, it is only used in test
int logExec();
#ifdef LOGGER_INTERRUPT
void mbusCommTxCpltCallback(UART_HandleTypeDef *huart);
#endif
#endif // _LOGGER_H_