micropython.h File Reference

MicroPython RIOT specific API. More...

Detailed Description

MicroPython RIOT specific API.

Author
Kaspar Schleiser kaspa.nosp@m.r@sc.nosp@m.hleis.nosp@m.er.d.nosp@m.e

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)
 
#define MP_STACK_SAFEAREA   (128U)
 
void mp_riot_init (char *heap, size_t heap_size)
 Initialize RIOT MicroPython port. More...
 
void mp_do_str (const char *src, int len)
 Execute a string as MicroPython code. More...
 

Function Documentation

◆ mp_do_str()

void mp_do_str ( const char *  src,
int  len 
)

Execute a string as MicroPython code.

The string will be executed on the global MicroPython instance.

Parameters
[in]srcpointer to Python code
[in]lenlength of src

◆ mp_riot_init()

void mp_riot_init ( char *  heap,
size_t  heap_size 
)

Initialize RIOT MicroPython port.

Parameters
[in]heapptr to heap MicroPython should use
[in]heap_sizesize of heap