summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-12-20 20:45:01 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-12-20 20:47:35 +0200
commitbf19586c53d1473255f87ea651bd40a6435d89d3 (patch)
tree739d50f0e735328190ff66de4cbb1bc1f384faa7
parent6efa66f12513e19fdbfb7b4199342113c2731512 (diff)
downloadmicropython-bf19586c53d1473255f87ea651bd40a6435d89d3.tar.gz
micropython-bf19586c53d1473255f87ea651bd40a6435d89d3.zip
stmhal: Include MICROPY_HAL_H only if defined.
Helps other ports.
-rw-r--r--stmhal/pyexec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stmhal/pyexec.c b/stmhal/pyexec.c
index d62b2a373c..00cd95362d 100644
--- a/stmhal/pyexec.c
+++ b/stmhal/pyexec.c
@@ -42,7 +42,9 @@
#include "repl.h"
#include "gc.h"
#include "gccollect.h"
+#ifdef MICROPY_HAL_H
#include MICROPY_HAL_H
+#endif
#include "systick.h"
#include "readline.h"
#include "pyexec.h"