From 6ecc4a7371351d5cc84be0ade5141186d7638a13 Mon Sep 17 00:00:00 2001 From: Andre Guedes Date: Wed, 1 Jul 2015 19:56:48 -0300 Subject: [PATCH] galileo: Implement main() function This patch implements the main() function for Galileo platform. At this moment, only Processes subsystem is enabled. After this patch we are able to some rudimentary debugging to ensure that process thread from applications are being indeed executed. Once we properly support more Contiki subsystems, such as clock, ctimer, etimer, and rtimer, we will add them to Galileo platform's main() as well. --- platform/galileo/contiki-main.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/platform/galileo/contiki-main.c b/platform/galileo/contiki-main.c index 76ad75e57..28550ac9e 100644 --- a/platform/galileo/contiki-main.c +++ b/platform/galileo/contiki-main.c @@ -28,8 +28,17 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "contiki.h" + int main(void) { + process_init(); + autostart_start(autostart_processes); + + while(1) { + process_run(); + } + return 0; }