]> mj.ucw.cz Git - home-hw.git/blob - Inc/util.h
More USB debugging
[home-hw.git] / Inc / util.h
1 #include <stdint.h>
2
3 typedef unsigned int uint;
4 typedef uint8_t byte;
5 typedef uint16_t u16;
6 typedef int16_t s16;
7 typedef uint32_t u32;
8 typedef int32_t s32;
9
10 #define MIN(x,y) ((x) < (y) ? (x) : (y))
11 #define MAX(x,y) ((x) > (y) ? (x) : (y))
12
13 // debug.c
14
15 #undef DEBUG_SEMIHOSTING
16
17 void debug_printf(const char *fmt, ...);
18 void debug_puts(const char *s);
19 void debug_putc(int c);