2016-07-22 18:18:17 +01:00
|
|
|
#include <alloca.h>
|
|
|
|
|
2016-10-12 17:42:55 +01:00
|
|
|
// Include Zephyr's autoconf.h, which should be made first by Zephyr makefiles
|
|
|
|
#include "autoconf.h"
|
|
|
|
|
2016-07-22 18:18:17 +01:00
|
|
|
// Saving extra crumbs to make sure binary fits in 128K
|
|
|
|
#define MICROPY_COMP_CONST_FOLDING (0)
|
|
|
|
#define MICROPY_COMP_CONST (0)
|
|
|
|
#define MICROPY_COMP_DOUBLE_TUPLE_ASSIGN (0)
|
|
|
|
|
2016-08-24 21:13:11 +01:00
|
|
|
#define MICROPY_STACK_CHECK (1)
|
2016-07-22 18:18:17 +01:00
|
|
|
#define MICROPY_ENABLE_GC (1)
|
|
|
|
#define MICROPY_HELPER_REPL (1)
|
|
|
|
#define MICROPY_REPL_AUTO_INDENT (1)
|
|
|
|
#define MICROPY_CPYTHON_COMPAT (0)
|
|
|
|
#define MICROPY_PY_ASYNC_AWAIT (0)
|
|
|
|
#define MICROPY_PY_ATTRTUPLE (0)
|
|
|
|
#define MICROPY_PY_BUILTINS_ENUMERATE (0)
|
|
|
|
#define MICROPY_PY_BUILTINS_FILTER (0)
|
|
|
|
#define MICROPY_PY_BUILTINS_MIN_MAX (0)
|
|
|
|
#define MICROPY_PY_BUILTINS_PROPERTY (0)
|
|
|
|
#define MICROPY_PY_BUILTINS_RANGE_ATTRS (0)
|
|
|
|
#define MICROPY_PY_BUILTINS_REVERSED (0)
|
|
|
|
#define MICROPY_PY_BUILTINS_SET (0)
|
|
|
|
#define MICROPY_PY_BUILTINS_SLICE (0)
|
|
|
|
#define MICROPY_PY_ARRAY (0)
|
|
|
|
#define MICROPY_PY_COLLECTIONS (0)
|
|
|
|
#define MICROPY_PY_CMATH (0)
|
|
|
|
#define MICROPY_PY_IO (0)
|
2016-08-24 21:13:11 +01:00
|
|
|
#define MICROPY_PY_MICROPYTHON_MEM_INFO (1)
|
2016-07-22 18:18:17 +01:00
|
|
|
#define MICROPY_PY_STRUCT (0)
|
|
|
|
#define MICROPY_PY_SYS_MODULES (0)
|
|
|
|
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_LONGLONG)
|
|
|
|
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
|
|
|
|
#define MICROPY_PY_BUILTINS_COMPLEX (0)
|
|
|
|
#define MICROPY_HW_BOARD_NAME "zephyr-generic"
|
|
|
|
#define MICROPY_HW_MCU_NAME "unknown-cpu"
|
2016-09-17 19:15:58 +01:00
|
|
|
#define MICROPY_MODULE_FROZEN_STR (1)
|
2016-07-22 18:18:17 +01:00
|
|
|
|
|
|
|
typedef int mp_int_t; // must be pointer size
|
|
|
|
typedef unsigned mp_uint_t; // must be pointer size
|
|
|
|
|
|
|
|
typedef void *machine_ptr_t; // must be of pointer size
|
|
|
|
typedef const void *machine_const_ptr_t; // must be of pointer size
|
|
|
|
typedef long mp_off_t;
|
|
|
|
|
|
|
|
#define BYTES_PER_WORD (sizeof(mp_int_t))
|
|
|
|
|
|
|
|
#define MP_STATE_PORT MP_STATE_VM
|
|
|
|
|
|
|
|
#define MICROPY_PORT_ROOT_POINTERS \
|
2016-09-29 18:24:56 +01:00
|
|
|
mp_obj_t mp_kbd_exception; \
|
2016-07-22 18:18:17 +01:00
|
|
|
const char *readline_hist[8];
|
|
|
|
|
2016-09-24 21:20:59 +01:00
|
|
|
// extra built in names to add to the global namespace
|
|
|
|
#define MICROPY_PORT_BUILTINS \
|
|
|
|
{ MP_OBJ_NEW_QSTR(MP_QSTR_help), (mp_obj_t)&mp_builtin_help_obj }, \
|
|
|
|
|