From ef4e8c65373f531ce6d37ff226a21fc9b358ff29 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Fri, 17 May 2013 11:02:00 +0200 Subject: Robot has its own core --- cores/robot/main.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 cores/robot/main.cpp (limited to 'cores/robot/main.cpp') diff --git a/cores/robot/main.cpp b/cores/robot/main.cpp new file mode 100644 index 0000000..3d4e079 --- /dev/null +++ b/cores/robot/main.cpp @@ -0,0 +1,20 @@ +#include + +int main(void) +{ + init(); + +#if defined(USBCON) + USBDevice.attach(); +#endif + + setup(); + + for (;;) { + loop(); + if (serialEventRun) serialEventRun(); + } + + return 0; +} + -- cgit v1.2.3-18-g5258