From fc98d3809e0db36d634f290417b9152f87f83e3e Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sun, 4 Sep 2022 18:37:42 +0200 Subject: new phone firmware --- fw/fe310/phone/app/log.h | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 fw/fe310/phone/app/log.h (limited to 'fw/fe310/phone/app/log.h') diff --git a/fw/fe310/phone/app/log.h b/fw/fe310/phone/app/log.h new file mode 100644 index 0000000..48ac5f0 --- /dev/null +++ b/fw/fe310/phone/app/log.h @@ -0,0 +1,6 @@ +#define APP_LOG_DEBUG 1 +#define APP_LOG_INFO 2 +#define APP_LOG_ERR 3 + +#define APP_LOG_LEVEL APP_LOG_DEBUG +#define APP_LOG(l, ...) (l >= APP_LOG_LEVEL ? fprintf(stderr, __VA_ARGS__) : 0 ) -- cgit v1.2.3