aboutsummaryrefslogtreecommitdiff
path: root/stmhal
diff options
context:
space:
mode:
authorDamien George2015-02-13 15:26:53 +0000
committerDamien George2015-02-13 15:26:53 +0000
commit601c814603801ad3af78e37d26c87a4470156738 (patch)
tree4e6f5b1b6cdd15b8c7c6967da1d66aa90f81115e /stmhal
parentccf45a42833355100c1cebb5851fa36494914ce1 (diff)
minimal: Allow to compile without defining MICROPY_HAL_H.
Diffstat (limited to 'stmhal')
-rw-r--r--stmhal/printf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stmhal/printf.c b/stmhal/printf.c
index 7af4f659d..038ee9937 100644
--- a/stmhal/printf.c
+++ b/stmhal/printf.c
@@ -30,7 +30,9 @@
#include "py/obj.h"
#include "py/pfenv.h"
+#ifdef MICROPY_HAL_H
#include MICROPY_HAL_H
+#endif
#if MICROPY_PY_BUILTINS_FLOAT
#include "py/formatfloat.h"