Loading...
Searching...
No Matches
micropython.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2019 Kaspar Schleiser <kaspar@schleiser.de>
3 * 2019 Inria
4 * 2019 Freie Universität Berlin
5 *
6 * This file is subject to the terms and conditions of the GNU Lesser
7 * General Public License v2.1. See the file LICENSE in the top level
8 * directory for more details.
9 */
10
11#pragma once
12
23
24#include <stdint.h>
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30#ifndef MP_RIOT_HEAPSIZE
31/* use a reasonable default heap size */
32#define MP_RIOT_HEAPSIZE (16U*1024)
33#endif
34
35#ifndef MP_STACK_SAFEAREA
36#define MP_STACK_SAFEAREA (128U)
37#endif
38
45void mp_riot_init(char* heap, size_t heap_size);
46
55void mp_do_str(const char *src, int len);
56
void mp_do_str(const char *src, int len)
Execute a string as MicroPython code.
void mp_riot_init(char *heap, size_t heap_size)
Initialize RIOT MicroPython port.