neptunium-firmware/Core/Inc/logging.h
Peter aa3b50eed2 Initial commit. Logging using tinyusb on stm32f302c8t6. WORKING:
WORKING: lps22hb, lsm6dsox, neo-m9n
TODO: sx1262, SD card, freertos
2024-07-06 04:25:33 +08:00

28 lines
463 B
C

#ifndef __USB_PRINTF
#define __USB_PRINTF
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
#include <integer.h>
#include "main.h"
#ifdef __cplusplus
extern "C"
{
#endif
typedef enum logging_interfaces
{
IF_USB = 0b01,
IF_LORA = 0b10,
} logging_interfaces;
void logging(const char *format, logging_interfaces logging_interfaces, ...);
#ifdef __cplusplus
}
#endif
#endif