2
2
3
3
// options to control how MicroPython is built
4
4
5
- #define MICROPY_ALLOC_PATH_MAX (512 )
5
+ #define MICROPY_CONFIG_ROM_LEVEL (MICROPY_CONFIG_ROM_LEVEL_EXTRA_FEATURES )
6
6
7
7
#if defined(__ARM_ARCH_ISA_ARM )
8
8
#define MICROPY_EMIT_ARM (1)
15
15
16
16
#define MICROPY_MALLOC_USES_ALLOCATED_SIZE (1)
17
17
#define MICROPY_MEM_STATS (1)
18
- #define MICROPY_DEBUG_PRINTERS (0)
19
18
#define MICROPY_ENABLE_GC (1)
20
- #define MICROPY_STACK_CHECK (1 )
19
+ #define MICROPY_KBD_EXCEPTION (0 )
21
20
#define MICROPY_HELPER_REPL (0)
22
- #define MICROPY_HELPER_LEXER_UNIX (0)
23
- #define MICROPY_ENABLE_SOURCE_LINE (1)
24
21
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
25
22
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
26
- #define MICROPY_CAN_OVERRIDE_BUILTINS (1)
27
23
#define MICROPY_WARNINGS (1)
28
- #define MICROPY_PY_ALL_SPECIAL_METHODS (1)
29
- #define MICROPY_PY_REVERSE_SPECIAL_METHODS (1)
30
- #define MICROPY_PY_ARRAY_SLICE_ASSIGN (1)
31
- #define MICROPY_PY_BUILTINS_BYTES_HEX (1)
32
- #define MICROPY_PY_BUILTINS_FROZENSET (1)
33
- #define MICROPY_PY_BUILTINS_MEMORYVIEW (1)
34
- #define MICROPY_PY_BUILTINS_POW3 (1)
35
- #define MICROPY_PY_IO (1)
36
- #define MICROPY_PY_SYS_EXIT (1)
37
- #define MICROPY_PY_SYS_MAXSIZE (1)
24
+ #define MICROPY_PY_BUILTINS_INPUT (0)
25
+ #define MICROPY_PY_BUILTINS_HELP (0)
26
+ #define MICROPY_PY_IO_IOBASE (0)
38
27
#define MICROPY_PY_SYS_PLATFORM "qemu-arm"
39
- #define MICROPY_PY_ERRNO (1)
40
- #define MICROPY_PY_BINASCII (1)
41
- #define MICROPY_PY_RANDOM (1)
42
- #define MICROPY_PY_UCTYPES (1)
43
- #define MICROPY_PY_DEFLATE (1)
44
- #define MICROPY_PY_JSON (1)
45
- #define MICROPY_PY_OS (1)
46
- #define MICROPY_PY_RE (1)
47
- #define MICROPY_PY_HEAPQ (1)
48
- #define MICROPY_PY_HASHLIB (1)
28
+ #define MICROPY_PY_SYS_STDFILES (0)
29
+ #define MICROPY_PY_SYS_STDIO_BUFFER (0)
30
+ #define MICROPY_PY_SELECT (0)
31
+ #define MICROPY_PY_TIME (0)
32
+ #define MICROPY_PY_ASYNCIO (0)
49
33
#define MICROPY_PY_MACHINE (1)
50
34
#define MICROPY_PY_MACHINE_INCLUDEFILE "ports/qemu-arm/modmachine.c"
51
35
#define MICROPY_PY_MACHINE_PIN_BASE (1)
52
- #define MICROPY_PY_MICROPYTHON_MEM_INFO (1)
53
- #define MICROPY_USE_INTERNAL_PRINTF (1)
54
36
#define MICROPY_VFS (1)
55
37
56
38
// type definitions for the specific machine
@@ -67,6 +49,9 @@ typedef long mp_off_t;
67
49
// We need to provide a declaration/definition of alloca()
68
50
#include <alloca.h>
69
51
52
+ // We need an implementation of the log2 function which is not a macro.
53
+ #define MP_NEED_LOG2 (1)
54
+
70
55
#ifdef TEST
71
56
#include "shared/upytesthelper/upytesthelper.h"
72
57
#undef MP_PLAT_PRINT_STRN
0 commit comments