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.
This commit is contained in:
parent
595088be09
commit
6ecc4a7371
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue