Loading...
Searching...
No Matches
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.
 
void mp_do_str (const char *src, int len)
 Execute a string as MicroPython code.
 

Macro Definition Documentation

◆ MP_RIOT_HEAPSIZE

#define MP_RIOT_HEAPSIZE   (16U*1024)

Definition at line 33 of file micropython.h.

◆ MP_STACK_SAFEAREA

#define MP_STACK_SAFEAREA   (128U)

Definition at line 37 of file micropython.h.

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