debug works in interrupt mode now, needs some refactoring, MBUSYield stops the whole system

This commit is contained in:
2020-11-10 22:18:51 +01:00
parent 15d8afa207
commit c98c5dd8a5
4 changed files with 23 additions and 44 deletions

View File

@ -3,8 +3,6 @@
#include <main.h>
// won't work so far
// #define LOGGER_INTERRUPT
typedef enum {
LOG_HIGH,
@ -29,14 +27,7 @@ int errMsg(const char *format, ...);
int coloredMsg(const t_logColor color, const char *format, ...);
// reads the ringbuffer and transfers data to output channel
// call this from the idle-loop
// return value can be ignored, it is only used in test
int logExec();
#ifdef LOGGER_INTERRUPT
void mbusCommTxCpltCallback(UART_HandleTypeDef *huart);
#endif
void debugTxCpltCallback(UART_HandleTypeDef *huart);
#endif // _LOGGER_H_