1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 09:28:13 +00:00
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

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);