2020-10-28 19:40:08 +01:00
|
|
|
#ifndef _LOGGER_H_
|
|
|
|
#define _LOGGER_H_
|
|
|
|
|
2020-10-29 20:50:50 +01:00
|
|
|
|
|
|
|
|
2020-10-29 14:30:55 +01:00
|
|
|
// initialize the logger, creates a ringbuffer
|
|
|
|
void logInit();
|
|
|
|
|
|
|
|
// de-initialize the logger, free the ringbuffer
|
|
|
|
void logFree();
|
|
|
|
|
|
|
|
// log a message, make sure it is a null-terminated string
|
|
|
|
// return value can be ignored, it is only used in test
|
2020-10-29 20:50:50 +01:00
|
|
|
int logMsg(const char *format, ...);
|
2020-10-29 14:30:55 +01:00
|
|
|
|
|
|
|
// 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
|
2020-10-29 15:44:13 +01:00
|
|
|
int logExec();
|
2020-10-28 19:40:08 +01:00
|
|
|
|
|
|
|
#endif // _LOGGER_H_
|