1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-02 10:24:11 +01:00
LibrePilot/flight/libraries/PyMite/platform/desktop/main.c
2013-04-25 13:13:36 +03:00

32 lines
817 B
C

/*
# This file is Copyright 2007, 2009 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# A copy of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1
# is seen in the file COPYING up one directory from this.
*/
#include "pm.h"
extern unsigned char usrlib_img[];
int main(void)
{
PmReturn_t retval;
retval = pm_init(MEMSPACE_PROG, usrlib_img);
PM_RETURN_IF_ERROR(retval);
retval = pm_run((uint8_t *)"main");
return (int)retval;
}