can_wizard/main/xvprintf.h
2023-11-28 13:37:17 +03:00

18 lines
407 B
C

#ifndef MAIN_XVPRINTF_H
#define MAIN_XVPRINTF_H
#include "freertos/ringbuf.h"
typedef int (*print_func)(const char *fmt, ...);
extern RingbufHandle_t can_messages;
extern bool timestamp_enabled;
void init_tx_ringbuf();
int vxprintf(const char *fmt, va_list args);
int xprintf(const char *fmt, ...);
int print_w_clr_time(char *msg, char *color, bool use_printf);
// functions
#endif // MAIN_XVPRINTF_H