Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
22
#ifndef MICROPYTHON_H
23
#define MICROPYTHON_H
24
25
#include <stdint.h>
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
31
#ifndef MP_RIOT_HEAPSIZE
32
/* use a reasonable default heap size */
33
#define MP_RIOT_HEAPSIZE (16U*1024)
34
#endif
35
36
#ifndef MP_STACK_SAFEAREA
37
#define MP_STACK_SAFEAREA (128U)
38
#endif
39
46
void
mp_riot_init
(
char
* heap,
size_t
heap_size);
47
56
void
mp_do_str
(
const
char
*src,
int
len);
57
58
#endif
/* MICROPYTHON_H */
59
mp_riot_init
void mp_riot_init(char *heap, size_t heap_size)
Initialize RIOT MicroPython port.
mp_do_str
void mp_do_str(const char *src, int len)
Execute a string as MicroPython code.
Generated on Tue Nov 24 2020 19:46:51 by
1.8.17