MicroPython RIOT specific API. More...
MicroPython RIOT specific API.
Definition in file micropython.h.
#include <stdint.h>
Include dependency graph for micropython.h:Go to the source code of this file.
| #define | MP_RIOT_HEAPSIZE (16U*1024) |
| Default heap size for MicroPython on RIOT. | |
| #define | MP_STACK_SAFEAREA (128U) |
| Safe area to leave free on the stack for interrupts and other unexpected stack usage. | |
| void | mp_riot_init (char *heap, size_t heap_size) |
| Initialize RIOT MicroPython port. | |
| void | mp_riot_deinit (void) |
| Tear down RIOT MicroPython port. | |
| #define MP_RIOT_HEAPSIZE (16U*1024) |
Default heap size for MicroPython on RIOT.
Use a reasonable default heap size.
Definition at line 33 of file micropython.h.
| #define MP_STACK_SAFEAREA (128U) |
Safe area to leave free on the stack for interrupts and other unexpected stack usage.
Definition at line 41 of file micropython.h.
| void mp_riot_deinit | ( | void | ) |
Tear down RIOT MicroPython port.
Releases the interpreter's state, so that a following mp_riot_init() call starts from a clean state instead of leaving stale references into the heap it is about to reset.
| void mp_riot_init | ( | char * | heap, |
| size_t | heap_size ) |
Initialize RIOT MicroPython port.
| [in] | heap | ptr to heap MicroPython should use |
| [in] | heap_size | size of heap |