debug works in interrupt mode now, needs some refactoring, MBUSYield stops the whole system
This commit is contained in:
@ -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_
|
||||
|
Reference in New Issue
Block a user