python-on-a-chip online compiler

Dependencies:   mbed TSI

/media/uploads/va009039/p14p-f446re.png

more info: python-on-a-chip

Committer:
va009039
Date:
Thu Apr 14 22:32:57 2016 +0000
Revision:
15:94ca5c8003e5
Parent:
0:65f1469d6bfb
update Nucleo-F401RE.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
va009039 0:65f1469d6bfb 1 /*
va009039 0:65f1469d6bfb 2 # This file is Copyright 2002 Dean Hall.
va009039 0:65f1469d6bfb 3 # This file is part of the PyMite VM.
va009039 0:65f1469d6bfb 4 # This file is licensed under the MIT License.
va009039 0:65f1469d6bfb 5 # See the LICENSE file for details.
va009039 0:65f1469d6bfb 6 */
va009039 0:65f1469d6bfb 7
va009039 0:65f1469d6bfb 8
va009039 0:65f1469d6bfb 9 #ifndef __MODULE_H__
va009039 0:65f1469d6bfb 10 #define __MODULE_H__
va009039 0:65f1469d6bfb 11
va009039 0:65f1469d6bfb 12
va009039 0:65f1469d6bfb 13 /**
va009039 0:65f1469d6bfb 14 * \file
va009039 0:65f1469d6bfb 15 * \brief Module Object Type
va009039 0:65f1469d6bfb 16 *
va009039 0:65f1469d6bfb 17 * Module object type header.
va009039 0:65f1469d6bfb 18 */
va009039 0:65f1469d6bfb 19
va009039 0:65f1469d6bfb 20
va009039 0:65f1469d6bfb 21 /**
va009039 0:65f1469d6bfb 22 * Creates a Module Obj for the given Code Obj.
va009039 0:65f1469d6bfb 23 *
va009039 0:65f1469d6bfb 24 * Use a func struct to represent the Module obj because
va009039 0:65f1469d6bfb 25 * the module's construction code must execute later,
va009039 0:65f1469d6bfb 26 * but set the type to OBJ_TYPE_MOD so that it is
va009039 0:65f1469d6bfb 27 * not otherwise callable.
va009039 0:65f1469d6bfb 28 *
va009039 0:65f1469d6bfb 29 * @param pco Ptr to code obj
va009039 0:65f1469d6bfb 30 * @param pmod Return by reference; ptr to new module obj
va009039 0:65f1469d6bfb 31 * @return Return status
va009039 0:65f1469d6bfb 32 */
va009039 0:65f1469d6bfb 33 PmReturn_t mod_new(pPmObj_t pco, pPmObj_t *pmod);
va009039 0:65f1469d6bfb 34
va009039 0:65f1469d6bfb 35 /**
va009039 0:65f1469d6bfb 36 * Imports a module of the given name.
va009039 0:65f1469d6bfb 37 * Searches for an image with a matching name.
va009039 0:65f1469d6bfb 38 * A code obj is created for the code image.
va009039 0:65f1469d6bfb 39 * A module obj is created for the code obj.
va009039 0:65f1469d6bfb 40 *
va009039 0:65f1469d6bfb 41 * @param pstr String obj containing name of code obj to load.
va009039 0:65f1469d6bfb 42 * @param pmod Return by reference; ptr to imported module
va009039 0:65f1469d6bfb 43 * @return Return status
va009039 0:65f1469d6bfb 44 */
va009039 0:65f1469d6bfb 45 PmReturn_t mod_import(pPmObj_t pstr, pPmObj_t *pmod);
va009039 0:65f1469d6bfb 46
va009039 0:65f1469d6bfb 47 #endif /* __MODULE_H__ */