4 typedef unsigned int uint;
11 #define MIN(x,y) ((x) < (y) ? (x) : (y))
12 #define MAX(x,y) ((x) > (y) ? (x) : (y))
14 static inline uint get_u16_le(byte *p)
16 return (p[1] << 8) | p[0];
19 static inline void put_u16_le(byte *p, u16 x)
27 #define DEBUG_SEMIHOSTING
29 void debug_printf(const char *fmt, ...);
30 void debug_puts(const char *s);
31 void debug_putc(int c);