This commit is contained in:
Pavol Rusnak 2017-12-17 03:19:26 +01:00
parent 83a34ff925
commit 77ff5a1c55
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
1 changed files with 1 additions and 1 deletions

2
util.h
View File

@ -26,7 +26,7 @@
#include <libopencm3/cm3/vector.h>
// Statement expressions make these macros side-effect safe
#define MIN(a, b) ({ typeof(a) _a = (a); typeof(b) _b = (b); _a > _b ? _a : _b; })
#define MIN(a, b) ({ typeof(a) _a = (a); typeof(b) _b = (b); _a < _b ? _a : _b; })
#define MAX(a, b) ({ typeof(a) _a = (a); typeof(b) _b = (b); _a > _b ? _a : _b; })
void delay(uint32_t wait);