diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-05-24 21:04:12 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-05-24 21:04:12 +0200 |
commit | 7e3ece64cd5138081263413461dc6856a668bfae (patch) | |
tree | bb380a2023b3fc3abd4e6255e262ee9931731597 /robot/main.c | |
parent | 92c394b44cc846ba044c2862b4f08eadc2160805 (diff) |
sim reading serial in from stdin working
Diffstat (limited to 'robot/main.c')
-rw-r--r-- | robot/main.c | 9 |
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(); |