utils.h: add mdelay

Signed-off-by: Sven Peter <sven@svenpeter.dev>
This commit is contained in:
Sven Peter 2021-03-07 09:11:28 +01:00 committed by Hector Martin
parent 35007b700e
commit 17fdc79c13

View file

@ -315,6 +315,8 @@ int debug_printf(const char *fmt, ...);
void udelay(u32 d);
void reboot(void) __attribute__((noreturn));
#define mdelay(m) udelay((m)*1000)
#define panic(fmt, ...) \
do { \
debug_printf(fmt, ##__VA_ARGS__); \