Numworks Epsilon  1.4.1
Graphing Calculator Operating System
modmicropython.c File Reference
#include <stdio.h>
#include "py/builtin.h"
#include "py/stackctrl.h"
#include "py/runtime.h"
#include "py/gc.h"
#include "py/mphal.h"

Go to the source code of this file.

Functions

STATIC mp_obj_t mp_micropython_opt_level (size_t n_args, const mp_obj_t *args)
 
STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (mp_micropython_opt_level_obj, 0, 1, mp_micropython_opt_level)
 
STATIC MP_DEFINE_CONST_DICT (mp_module_micropython_globals, mp_module_micropython_globals_table)
 

Variables

STATIC const mp_rom_map_elem_t mp_module_micropython_globals_table []
 
const mp_obj_module_t mp_module_micropython
 

Function Documentation

◆ MP_DEFINE_CONST_DICT()

STATIC MP_DEFINE_CONST_DICT ( mp_module_micropython_globals  ,
mp_module_micropython_globals_table   
)

◆ MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN()

STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN ( mp_micropython_opt_level_obj  ,
,
,
mp_micropython_opt_level   
)

◆ mp_micropython_opt_level()

STATIC mp_obj_t mp_micropython_opt_level ( size_t  n_args,
const mp_obj_t args 
)

Definition at line 38 of file modmicropython.c.

Variable Documentation

◆ mp_module_micropython

const mp_obj_module_t mp_module_micropython
Initial value:
= {
.base = { &mp_type_module },
.globals = (mp_obj_dict_t*)&mp_module_micropython_globals,
}
const mp_obj_type_t mp_type_module
Definition: objmodule.c:94

Definition at line 184 of file modmicropython.c.

◆ mp_module_micropython_globals_table

STATIC const mp_rom_map_elem_t mp_module_micropython_globals_table[]
Initial value:
= {
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_micropython) },
{ MP_ROM_QSTR(MP_QSTR_const), MP_ROM_PTR(&mp_identity_obj) },
{ MP_ROM_QSTR(MP_QSTR_opt_level), MP_ROM_PTR(&mp_micropython_opt_level_obj) },
}
#define MP_ROM_QSTR(q)
Definition: obj.h:241
#define MP_ROM_PTR(p)
Definition: obj.h:242

Definition at line 151 of file modmicropython.c.