|
31 | 31 | #include <zephyr/kernel.h> |
32 | 32 | #include <zephyr/drivers/spi.h> |
33 | 33 |
|
| 34 | +// Use the basic configuration level to get a balance between size and features. |
| 35 | +#ifndef MICROPY_CONFIG_ROM_LEVEL |
| 36 | +#define MICROPY_CONFIG_ROM_LEVEL (MICROPY_CONFIG_ROM_LEVEL_BASIC_FEATURES) |
| 37 | +#endif |
| 38 | + |
34 | 39 | // Usually passed from Makefile |
35 | 40 | #ifndef MICROPY_HEAP_SIZE |
36 | 41 | #define MICROPY_HEAP_SIZE (16 * 1024) |
|
48 | 53 | #define MICROPY_REPL_AUTO_INDENT (1) |
49 | 54 | #define MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF (1) |
50 | 55 | #define MICROPY_KBD_EXCEPTION (1) |
51 | | -#define MICROPY_PY_ASYNC_AWAIT (0) |
52 | 56 | #define MICROPY_PY_BUILTINS_BYTES_HEX (1) |
53 | | -#define MICROPY_PY_BUILTINS_FILTER (0) |
54 | | -#define MICROPY_PY_BUILTINS_PROPERTY (0) |
55 | | -#define MICROPY_PY_BUILTINS_RANGE_ATTRS (0) |
56 | | -#define MICROPY_PY_BUILTINS_REVERSED (0) |
57 | | -#define MICROPY_PY_BUILTINS_STR_COUNT (0) |
58 | 57 | #define MICROPY_PY_BUILTINS_MEMORYVIEW (1) |
59 | 58 | #define MICROPY_PY_BUILTINS_HELP (1) |
60 | 59 | #define MICROPY_PY_BUILTINS_HELP_TEXT zephyr_help_text |
61 | | -#define MICROPY_PY_ARRAY (0) |
62 | 60 | #define MICROPY_PY_ARRAY_SLICE_ASSIGN (1) |
63 | | -#define MICROPY_PY_COLLECTIONS (0) |
64 | | -#define MICROPY_PY_CMATH (0) |
65 | 61 | #define MICROPY_PY_MICROPYTHON_MEM_INFO (1) |
66 | 62 | #define MICROPY_PY_MACHINE (1) |
67 | 63 | #define MICROPY_PY_MACHINE_INCLUDEFILE "ports/zephyr/modmachine.c" |
|
80 | 76 | #endif |
81 | 77 | #define MICROPY_PY_MACHINE_PWM (1) |
82 | 78 | #define MICROPY_PY_MACHINE_PWM_INCLUDEFILE "ports/zephyr/machine_pwm.c" |
83 | | -#define MICROPY_PY_STRUCT (0) |
84 | 79 | #ifdef CONFIG_NETWORKING |
85 | 80 | // If we have networking, we likely want errno comfort |
86 | 81 | #define MICROPY_PY_ERRNO (1) |
|
96 | 91 | #define MICROPY_PY_BINASCII (1) |
97 | 92 | #define MICROPY_PY_HASHLIB (1) |
98 | 93 | #define MICROPY_PY_OS (1) |
99 | | -#define MICROPY_PY_TIME (1) |
100 | 94 | #define MICROPY_PY_TIME_TIME_TIME_NS (1) |
101 | 95 | #define MICROPY_PY_TIME_INCLUDEFILE "ports/zephyr/modtime.c" |
102 | 96 | #define MICROPY_PY_ZEPHYR (1) |
|
117 | 111 | #define MICROPY_FATFS_RPATH (2) |
118 | 112 | #define MICROPY_FATFS_NORTC (1) |
119 | 113 |
|
120 | | -// Saving extra crumbs to make sure binary fits in 128K |
121 | | -#define MICROPY_COMP_CONST_FOLDING (0) |
122 | | -#define MICROPY_COMP_CONST (0) |
123 | | -#define MICROPY_COMP_DOUBLE_TUPLE_ASSIGN (0) |
124 | | - |
125 | 114 | // When CONFIG_THREAD_CUSTOM_DATA is enabled, MICROPY_PY_THREAD is enabled automatically |
126 | 115 | #ifdef CONFIG_THREAD_CUSTOM_DATA |
127 | 116 | #define MICROPY_PY_THREAD (1) |
|
0 commit comments