summaryrefslogtreecommitdiff
path: root/robot/main.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-24 21:04:12 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-24 21:04:12 +0200
commit7e3ece64cd5138081263413461dc6856a668bfae (patch)
treebb380a2023b3fc3abd4e6255e262ee9931731597 /robot/main.c
parent92c394b44cc846ba044c2862b4f08eadc2160805 (diff)
sim reading serial in from stdin working
Diffstat (limited to 'robot/main.c')
-rw-r--r--robot/main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/robot/main.c b/robot/main.c
index fbfd38b..d76dbaf 100644
--- a/robot/main.c
+++ b/robot/main.c
@@ -1,8 +1,15 @@
#include "main.h"
#include "hypervisor.h"
#include "setup.h"
+#ifdef W2_SIM
+#include "sim.h"
+#endif
+
+int main(int argc, char **argv) {
+#ifdef W2_SIM
+ w2_sim_setup(argc, argv);
+#endif
-int main() {
w2_setup_main();
for (;;) w2_hypervisor_main();