2023-11-24 03:49:17 +00:00
|
|
|
#ifndef MAIN_XVPRINTF_H
|
|
|
|
#define MAIN_XVPRINTF_H
|
|
|
|
|
|
|
|
#include "freertos/ringbuf.h"
|
|
|
|
|
2023-11-28 10:37:17 +00:00
|
|
|
typedef int (*print_func)(const char *fmt, ...);
|
|
|
|
|
2023-11-24 03:49:17 +00:00
|
|
|
extern RingbufHandle_t can_messages;
|
2023-11-28 10:37:17 +00:00
|
|
|
extern bool timestamp_enabled;
|
2023-11-24 03:49:17 +00:00
|
|
|
|
|
|
|
void init_tx_ringbuf();
|
2023-11-24 04:16:58 +00:00
|
|
|
int vxprintf(const char *fmt, va_list args);
|
2023-11-24 03:49:17 +00:00
|
|
|
int xprintf(const char *fmt, ...);
|
2023-11-28 10:37:17 +00:00
|
|
|
int print_w_clr_time(char *msg, char *color, bool use_printf);
|
2023-11-24 03:49:17 +00:00
|
|
|
|
|
|
|
// functions
|
|
|
|
|
|
|
|
#endif // MAIN_XVPRINTF_H
|