LP-89 - Port OP_15.05.01 fixes. Release notes:
[librepilot.git] / flight / libraries / PyMite / platform / desktop / main.c
blob3ef3775c193b3c569d7362810aca3b812a100d77
1 /*
2 # This file is Copyright 2007, 2009 Dean Hall.
4 # This file is part of the Python-on-a-Chip program.
5 # Python-on-a-Chip is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
7 #
8 # Python-on-a-Chip is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11 # A copy of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1
12 # is seen in the file COPYING up one directory from this.
16 #include "pm.h"
19 extern unsigned char usrlib_img[];
22 int main(void)
24 PmReturn_t retval;
26 retval = pm_init(MEMSPACE_PROG, usrlib_img);
27 PM_RETURN_IF_ERROR(retval);
29 retval = pm_run((uint8_t *)"main");
30 return (int)retval;