Loading...
Searching...
No Matches
mpconfigport.h File Reference

MicroPython port configuration for RIOT. More...

Detailed Description

MicroPython port configuration for RIOT.

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

Definition in file mpconfigport.h.

#include <stdlib.h>
#include <stdint.h>
#include "kernel_defines.h"
#include "irq.h"
#include "stdio_base.h"
+ Include dependency graph for mpconfigport.h:

Go to the source code of this file.

Macros

#define MICROPY_COMP_CONST_FOLDING   (1)
 
#define MICROPY_COMP_CONST   (1)
 
#define MICROPY_COMP_DOUBLE_TUPLE_ASSIGN   (1)
 
#define MICROPY_CPYTHON_COMPAT   (1)
 
#define MICROPY_ENABLE_GC   (1)
 
#define MICROPY_ENABLE_SCHEDULER   (1)
 
#define MICROPY_SCHEDULER_STATIC_NODES   (1)
 
#define MICROPY_ENABLE_SOURCE_LINE   (1)
 
#define MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF   (1)
 
#define MICROPY_HELPER_REPL   (1)
 
#define MICROPY_KBD_EXCEPTION   (0)
 
#define MICROPY_PY_ARRAY   (1)
 
#define MICROPY_PY_ARRAY_SLICE_ASSIGN   (1)
 
#define MICROPY_PY_ASYNC_AWAIT   (0)
 
#define MICROPY_PY_ATTRTUPLE   (1)
 
#define MICROPY_PY_BUILTINS_BYTEARRAY   (1)
 
#define MICROPY_PY_BUILTINS_ENUMERATE   (1)
 
#define MICROPY_PY_BUILTINS_FILTER   (1)
 
#define MICROPY_PY_BUILTINS_HELP   (1)
 
#define MICROPY_PY_BUILTINS_HELP_MODULES   (1)
 
#define MICROPY_PY_BUILTINS_HELP_TEXT   riot_help_text
 
#define MICROPY_PY_BUILTINS_MEMORYVIEW   (1)
 
#define MICROPY_PY_BUILTINS_MIN_MAX   (1)
 
#define MICROPY_PY_BUILTINS_PROPERTY   (1)
 
#define MICROPY_PY_BUILTINS_RANGE_ATTRS   (1)
 
#define MICROPY_PY_BUILTINS_REVERSED   (1)
 
#define MICROPY_PY_BUILTINS_SET   (1)
 
#define MICROPY_PY_CMATH   (1)
 
#define MICROPY_PY_COLLECTIONS   (1)
 
#define MICROPY_REPL_AUTO_INDENT   (1)
 
#define MICROPY_REPL_STDIN_BUFFER_MAX   (STDIO_RX_BUFSIZE)
 
#define MICROPY_STACK_CHECK   (1)
 
#define MICROPY_USE_INTERNAL_PRINTF   (0)
 
#define MICROPY_PY_IO   (0)
 
#define MICROPY_PY_MICROPYTHON_MEM_INFO   (1)
 
#define MICROPY_PY_MACHINE   (1)
 
#define MICROPY_PY_MACHINE_PIN_MAKE_NEW   mp_pin_make_new
 
#define MICROPY_PY_STRUCT   (1)
 
#define MICROPY_PY_MACHINE_SPI_MAKE_NEW   machine_hw_spi_make_new
 
#define MICROPY_EPOCH_IS_1970   (1)
 
#define MICROPY_PY_TIME   (1)
 
#define MICROPY_PY_TIME_GMTIME_LOCALTIME_MKTIME   (1)
 
#define MICROPY_PY_TIME_TIME_TIME_NS   (1)
 
#define MICROPY_PY_TIME_INCLUDEFILE   "modtime_riot.c"
 
#define MICROPY_PY_SYS_MODULES   (1)
 
#define MICROPY_LONGINT_IMPL   (MICROPY_LONGINT_IMPL_LONGLONG)
 
#define MICROPY_FLOAT_IMPL   (MICROPY_FLOAT_IMPL_FLOAT)
 
#define MICROPY_FLOAT_USE_NATIVE_FLT16   (0)
 
#define MICROPY_PY_BUILTINS_COMPLEX   (0)
 
#define MICROPY_PY_SYS_PLATFORM   "RIOT"
 
#define MICROPY_HW_BOARD_NAME   "riot-" RIOT_BOARD
 
#define MICROPY_HW_MCU_NAME   RIOT_CPU
 
#define MICROPY_MODULE_FROZEN_STR   (0)
 
#define MICROPY_BEGIN_ATOMIC_SECTION()
 
#define MICROPY_END_ATOMIC_SECTION(state)
 
#define MICROPY_SCHED_HOOK_SCHEDULED   mp_riot_sched_hook()
 
#define MICROPY_PORT_ROOT_POINTERS   const char *readline_hist[8];
 
#define MP_STATE_PORT   MP_STATE_VM
 

Typedefs

typedef intptr_t mp_int_t
 
typedef uintptr_t mp_uint_t
 
typedef long mp_off_t
 

Functions

void mp_riot_sched_hook (void)
 

Macro Definition Documentation

◆ MICROPY_BEGIN_ATOMIC_SECTION

#define MICROPY_BEGIN_ATOMIC_SECTION ( )
Value:
MAYBE_INLINE unsigned irq_disable(void)
This function sets the IRQ disable bit in the status register.

Definition at line 110 of file mpconfigport.h.

◆ MICROPY_COMP_CONST

#define MICROPY_COMP_CONST   (1)

Definition at line 39 of file mpconfigport.h.

◆ MICROPY_COMP_CONST_FOLDING

#define MICROPY_COMP_CONST_FOLDING   (1)

Definition at line 38 of file mpconfigport.h.

◆ MICROPY_COMP_DOUBLE_TUPLE_ASSIGN

#define MICROPY_COMP_DOUBLE_TUPLE_ASSIGN   (1)

Definition at line 40 of file mpconfigport.h.

◆ MICROPY_CPYTHON_COMPAT

#define MICROPY_CPYTHON_COMPAT   (1)

Definition at line 41 of file mpconfigport.h.

◆ MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF

#define MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF   (1)

Definition at line 46 of file mpconfigport.h.

◆ MICROPY_ENABLE_GC

#define MICROPY_ENABLE_GC   (1)

Definition at line 42 of file mpconfigport.h.

◆ MICROPY_ENABLE_SCHEDULER

#define MICROPY_ENABLE_SCHEDULER   (1)

Definition at line 43 of file mpconfigport.h.

◆ MICROPY_ENABLE_SOURCE_LINE

#define MICROPY_ENABLE_SOURCE_LINE   (1)

Definition at line 45 of file mpconfigport.h.

◆ MICROPY_END_ATOMIC_SECTION

#define MICROPY_END_ATOMIC_SECTION ( state)
Value:
MAYBE_INLINE void irq_restore(unsigned state)
This function restores the IRQ disable bit in the status register to the value contained within passe...

Definition at line 111 of file mpconfigport.h.

◆ MICROPY_EPOCH_IS_1970

#define MICROPY_EPOCH_IS_1970   (1)

Definition at line 81 of file mpconfigport.h.

◆ MICROPY_FLOAT_IMPL

#define MICROPY_FLOAT_IMPL   (MICROPY_FLOAT_IMPL_FLOAT)

Definition at line 95 of file mpconfigport.h.

◆ MICROPY_FLOAT_USE_NATIVE_FLT16

#define MICROPY_FLOAT_USE_NATIVE_FLT16   (0)

Definition at line 96 of file mpconfigport.h.

◆ MICROPY_HELPER_REPL

#define MICROPY_HELPER_REPL   (1)

Definition at line 47 of file mpconfigport.h.

◆ MICROPY_HW_BOARD_NAME

#define MICROPY_HW_BOARD_NAME   "riot-" RIOT_BOARD

Definition at line 101 of file mpconfigport.h.

◆ MICROPY_HW_MCU_NAME

#define MICROPY_HW_MCU_NAME   RIOT_CPU

Definition at line 102 of file mpconfigport.h.

◆ MICROPY_KBD_EXCEPTION

#define MICROPY_KBD_EXCEPTION   (0)

Definition at line 48 of file mpconfigport.h.

◆ MICROPY_LONGINT_IMPL

#define MICROPY_LONGINT_IMPL   (MICROPY_LONGINT_IMPL_LONGLONG)

Definition at line 93 of file mpconfigport.h.

◆ MICROPY_MODULE_FROZEN_STR

#define MICROPY_MODULE_FROZEN_STR   (0)

Definition at line 104 of file mpconfigport.h.

◆ MICROPY_PORT_ROOT_POINTERS

#define MICROPY_PORT_ROOT_POINTERS   const char *readline_hist[8];

Definition at line 116 of file mpconfigport.h.

◆ MICROPY_PY_ARRAY

#define MICROPY_PY_ARRAY   (1)

Definition at line 49 of file mpconfigport.h.

◆ MICROPY_PY_ARRAY_SLICE_ASSIGN

#define MICROPY_PY_ARRAY_SLICE_ASSIGN   (1)

Definition at line 50 of file mpconfigport.h.

◆ MICROPY_PY_ASYNC_AWAIT

#define MICROPY_PY_ASYNC_AWAIT   (0)

Definition at line 51 of file mpconfigport.h.

◆ MICROPY_PY_ATTRTUPLE

#define MICROPY_PY_ATTRTUPLE   (1)

Definition at line 52 of file mpconfigport.h.

◆ MICROPY_PY_BUILTINS_BYTEARRAY

#define MICROPY_PY_BUILTINS_BYTEARRAY   (1)

Definition at line 53 of file mpconfigport.h.

◆ MICROPY_PY_BUILTINS_COMPLEX

#define MICROPY_PY_BUILTINS_COMPLEX   (0)

Definition at line 97 of file mpconfigport.h.

◆ MICROPY_PY_BUILTINS_ENUMERATE

#define MICROPY_PY_BUILTINS_ENUMERATE   (1)

Definition at line 54 of file mpconfigport.h.

◆ MICROPY_PY_BUILTINS_FILTER

#define MICROPY_PY_BUILTINS_FILTER   (1)

Definition at line 55 of file mpconfigport.h.

◆ MICROPY_PY_BUILTINS_HELP

#define MICROPY_PY_BUILTINS_HELP   (1)

Definition at line 56 of file mpconfigport.h.

◆ MICROPY_PY_BUILTINS_HELP_MODULES

#define MICROPY_PY_BUILTINS_HELP_MODULES   (1)

Definition at line 57 of file mpconfigport.h.

◆ MICROPY_PY_BUILTINS_HELP_TEXT

#define MICROPY_PY_BUILTINS_HELP_TEXT   riot_help_text

Definition at line 58 of file mpconfigport.h.

◆ MICROPY_PY_BUILTINS_MEMORYVIEW

#define MICROPY_PY_BUILTINS_MEMORYVIEW   (1)

Definition at line 59 of file mpconfigport.h.

◆ MICROPY_PY_BUILTINS_MIN_MAX

#define MICROPY_PY_BUILTINS_MIN_MAX   (1)

Definition at line 60 of file mpconfigport.h.

◆ MICROPY_PY_BUILTINS_PROPERTY

#define MICROPY_PY_BUILTINS_PROPERTY   (1)

Definition at line 61 of file mpconfigport.h.

◆ MICROPY_PY_BUILTINS_RANGE_ATTRS

#define MICROPY_PY_BUILTINS_RANGE_ATTRS   (1)

Definition at line 62 of file mpconfigport.h.

◆ MICROPY_PY_BUILTINS_REVERSED

#define MICROPY_PY_BUILTINS_REVERSED   (1)

Definition at line 63 of file mpconfigport.h.

◆ MICROPY_PY_BUILTINS_SET

#define MICROPY_PY_BUILTINS_SET   (1)

Definition at line 64 of file mpconfigport.h.

◆ MICROPY_PY_CMATH

#define MICROPY_PY_CMATH   (1)

Definition at line 65 of file mpconfigport.h.

◆ MICROPY_PY_COLLECTIONS

#define MICROPY_PY_COLLECTIONS   (1)

Definition at line 66 of file mpconfigport.h.

◆ MICROPY_PY_IO

#define MICROPY_PY_IO   (0)

Definition at line 71 of file mpconfigport.h.

◆ MICROPY_PY_MACHINE

#define MICROPY_PY_MACHINE   (1)

Definition at line 73 of file mpconfigport.h.

◆ MICROPY_PY_MACHINE_PIN_MAKE_NEW

#define MICROPY_PY_MACHINE_PIN_MAKE_NEW   mp_pin_make_new

Definition at line 74 of file mpconfigport.h.

◆ MICROPY_PY_MACHINE_SPI_MAKE_NEW

#define MICROPY_PY_MACHINE_SPI_MAKE_NEW   machine_hw_spi_make_new

Definition at line 76 of file mpconfigport.h.

◆ MICROPY_PY_MICROPYTHON_MEM_INFO

#define MICROPY_PY_MICROPYTHON_MEM_INFO   (1)

Definition at line 72 of file mpconfigport.h.

◆ MICROPY_PY_STRUCT

#define MICROPY_PY_STRUCT   (1)

Definition at line 75 of file mpconfigport.h.

◆ MICROPY_PY_SYS_MODULES

#define MICROPY_PY_SYS_MODULES   (1)

Definition at line 86 of file mpconfigport.h.

◆ MICROPY_PY_SYS_PLATFORM

#define MICROPY_PY_SYS_PLATFORM   "RIOT"

Definition at line 99 of file mpconfigport.h.

◆ MICROPY_PY_TIME

#define MICROPY_PY_TIME   (1)

Definition at line 82 of file mpconfigport.h.

◆ MICROPY_PY_TIME_GMTIME_LOCALTIME_MKTIME

#define MICROPY_PY_TIME_GMTIME_LOCALTIME_MKTIME   (1)

Definition at line 83 of file mpconfigport.h.

◆ MICROPY_PY_TIME_INCLUDEFILE

#define MICROPY_PY_TIME_INCLUDEFILE   "modtime_riot.c"

Definition at line 85 of file mpconfigport.h.

◆ MICROPY_PY_TIME_TIME_TIME_NS

#define MICROPY_PY_TIME_TIME_TIME_NS   (1)

Definition at line 84 of file mpconfigport.h.

◆ MICROPY_REPL_AUTO_INDENT

#define MICROPY_REPL_AUTO_INDENT   (1)

Definition at line 67 of file mpconfigport.h.

◆ MICROPY_REPL_STDIN_BUFFER_MAX

#define MICROPY_REPL_STDIN_BUFFER_MAX   (STDIO_RX_BUFSIZE)

Definition at line 68 of file mpconfigport.h.

◆ MICROPY_SCHED_HOOK_SCHEDULED

#define MICROPY_SCHED_HOOK_SCHEDULED   mp_riot_sched_hook()

Definition at line 114 of file mpconfigport.h.

◆ MICROPY_SCHEDULER_STATIC_NODES

#define MICROPY_SCHEDULER_STATIC_NODES   (1)

Definition at line 44 of file mpconfigport.h.

◆ MICROPY_STACK_CHECK

#define MICROPY_STACK_CHECK   (1)

Definition at line 69 of file mpconfigport.h.

◆ MICROPY_USE_INTERNAL_PRINTF

#define MICROPY_USE_INTERNAL_PRINTF   (0)

Definition at line 70 of file mpconfigport.h.

◆ MP_STATE_PORT

#define MP_STATE_PORT   MP_STATE_VM

Definition at line 118 of file mpconfigport.h.

Typedef Documentation

◆ mp_int_t

typedef intptr_t mp_int_t

Definition at line 106 of file mpconfigport.h.

◆ mp_off_t

typedef long mp_off_t

Definition at line 108 of file mpconfigport.h.

◆ mp_uint_t

typedef uintptr_t mp_uint_t

Definition at line 107 of file mpconfigport.h.