main.c

Go to the documentation of this file.
00001 
00015 #include "pm.h"
00016 
00017 extern unsigned char usrlib_img[];
00018 
00019 int
00020 main(void)
00021 {
00022     PmReturn_t retval;
00023 
00024     /* Init PyMite */
00025     retval = pm_init(MEMSPACE_PROG, usrlib_img);
00026     PM_RETURN_IF_ERROR(retval);
00027 
00028     /* Run the sample program */
00029     retval = pm_run((uint8_t *)"main");
00030 
00031     return (int)retval;
00032 }

Generated on Mon Oct 18 07:40:46 2010 for Python-on-a-chip by  doxygen 1.5.9