neptunium-firmware/Core/Inc/utils.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

18 lines
476 B
C

#include <stdint.h>
#define FLOAT_CHAR_BUFF_SIZE 10
char *float_to_char(float x, char *p);
uint8_t print_float(float x);
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
#define HALT_BKPT() \
{ \
__asm__ __volatile__("BKPT"); \
while (1) \
{ \
} \
}