summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-07-07 20:22:12 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-07-07 20:22:12 (GMT)
commiteac72188cf9e2ab4de60a368812fda261ad21d8b (patch)
treea7b82fa786870b86423bb558d1f3e94a6cd1e96d
parentae5743529f82d398876456b7e175defb19a6ccfc (diff)
simulator: Provide a special main.py for the simulator
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
-rw-r--r--Makefile2
-rw-r--r--wasp/boards/simulator/main.py5
2 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6fc025b..6b94687 100644
--- a/Makefile
+++ b/Makefile
@@ -74,7 +74,7 @@ docs:
sim:
PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=.:wasp/boards/simulator:wasp \
- python3 -i wasp/main.py
+ python3 -i wasp/boards/simulator/main.py
.PHONY: bootloader reloader docs micropython
diff --git a/wasp/boards/simulator/main.py b/wasp/boards/simulator/main.py
new file mode 100644
index 0000000..88fb87e
--- /dev/null
+++ b/wasp/boards/simulator/main.py
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: LGPL-3.0-or-later
+# Copyright (C) 2020 Daniel Thompson
+
+import wasp
+wasp.system.run()