Loading...
Searching...
No Matches
micropython.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 Kaspar Schleiser <kaspar@schleiser.de>
3 * SPDX-FileCopyrightText: 2019 Inria
4 * SPDX-FileCopyrightText: 2019 Freie Universität Berlin
5 * SPDX-License-Identifier: LGPL-2.1-only
6 */
7
8#pragma once
9
20
21#include <stdint.h>
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
32#ifndef MP_RIOT_HEAPSIZE
33# define MP_RIOT_HEAPSIZE (16U*1024)
34#endif
35
40#ifndef MP_STACK_SAFEAREA
41# define MP_STACK_SAFEAREA (128U)
42#endif
43
50void mp_riot_init(char* heap, size_t heap_size);
51
59void mp_riot_deinit(void);
60
61#ifdef __cplusplus
62}
63#endif
64
void mp_riot_init(char *heap, size_t heap_size)
Initialize RIOT MicroPython port.
void mp_riot_deinit(void)
Tear down RIOT MicroPython port.