8000 esp8266/mpconfigport: Switch to ROM feature level configuration. · micropython/micropython@ad7b98c · GitHub
[go: up one dir, main page]

Skip to content

Commit ad7b98c

Browse files
committed
esp8266/mpconfigport: Switch to ROM feature level configuration.
This is a no-op in terms of board configuration. Signed-off-by: Damien George <damien@micropython.org>
1 parent 627ba38 commit ad7b98c

File tree

4 files changed

+46
-53
lines changed

4 files changed

+46
-53
lines changed

ports/esp8266/boards/GENERIC/mpconfigboard.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,4 @@
1111
#define MICROPY_READER_VFS (MICROPY_VFS)
1212
#define MICROPY_VFS (1)
1313

14-
#define MICROPY_PY_FSTRINGS (1)
15-
#define MICROPY_PY_BUILTINS_SLICE_ATTRS (1)
16-
#define MICROPY_PY_ALL_SPECIAL_METHODS (1)
17-
#define MICROPY_PY_IO_FILEIO (1)
18-
#define MICROPY_PY_SYS_STDIO_BUFFER (1)
19-
#define MICROPY_PY_UASYNCIO (1)
20-
#define MICROPY_PY_URE_SUB (1)
2114
#define MICROPY_PY_UCRYPTOLIB (1)
22-
#define MICROPY_PY_FRAMEBUF (1)

ports/esp8266/boards/GENERIC_1M/mpconfigboard.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
#define MICROPY_READER_VFS (MICROPY_VFS)
1212
#define MICROPY_VFS (1)
1313

14-
#define MICROPY_PY_BUILTINS_SLICE_ATTRS (1)
15-
#define MICROPY_PY_ALL_SPECIAL_METHODS (1)
16-
#define MICROPY_PY_IO_FILEIO (1)
17-
#define MICROPY_PY_SYS_STDIO_BUFFER (1)
18-
#define MICROPY_PY_URE_SUB (1)
14+
#define MICROPY_PY_FSTRINGS (0)
15+
#define MICROPY_PY_UASYNCIO (0)
1916
#define MICROPY_PY_UCRYPTOLIB (1)
20-
#define MICROPY_PY_FRAMEBUF (1)

ports/esp8266/boards/GENERIC_512K/mpconfigboard.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,11 @@
22
#define MICROPY_HW_MCU_NAME "ESP8266"
33

44
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_TERSE)
5+
6+
#define MICROPY_PY_FSTRINGS (0)
7+
#define MICROPY_PY_BUILTINS_SLICE_ATTRS (0)
8+
#define MICROPY_PY_ALL_SPECIAL_METHODS (0)
9+
#define MICROPY_PY_SYS_STDIO_BUFFER (0)
10+
#define MICROPY_PY_UASYNCIO (0)
11+
#define MICROPY_PY_URE_SUB (0)
12+
#define MICROPY_PY_FRAMEBUF (0)

ports/esp8266/mpconfigport.h

Lines changed: 36 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,42 @@
66

77
#include <stdint.h>
88

9+
// Set the rom feature level.
10+
#define MICROPY_CONFIG_ROM_LEVEL (MICROPY_CONFIG_ROM_LEVEL_EXTRA_FEATURES)
11+
12+
// Disable items from the extra level that are not wanted.
13+
#define MICROPY_COMP_MODULE_CONST (0)
14+
#define MICROPY_COMP_TRIPLE_TUPLE_ASSIGN (0)
15+
#define MICROPY_COMP_RETURN_IF_EXPR (0)
16+
#define MICROPY_OPT_LOAD_ATTR_FAST_PATH (0)
17+
#define MICROPY_OPT_MAP_LOOKUP_CACHE (0)
18+
#define MICROPY_OPT_MPZ_BITWISE (0)
19+
#define MICROPY_OPT_MATH_FACTORIAL (0)
20+
#define MICROPY_REPL_EMACS_KEYS (0)
21+
#define MICROPY_PY_BUILTINS_COMPLEX (0)
22+
#define MICROPY_MODULE_ATTR_DELEGATION (0)
23+
#define MICROPY_PY_FUNCTION_ATTRS (0)
24+
#define MICROPY_PY_DELATTR_SETATTR (0)
25+
#define MICROPY_PY_BUILTINS_STR_CENTER (0)
26+
#define MICROPY_PY_BUILTINS_STR_PARTITION (0)
27+
#define MICROPY_PY_BUILTINS_STR_SPLITLINES (0)
28+
#define MICROPY_PY_BUILTINS_SLICE_INDICES (0)
29+
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (0)
30+
#define MICROPY_PY_BUILTINS_COMPILE (0)
31+
#define MICROPY_PY_BUILTINS_EXECFILE (0)
32+
#define MICROPY_PY_BUILTINS_NOTIMPLEMENTED (0)
33+
#define MICROPY_PY_BUILTINS_POW3 (0)
34+
#define MICROPY_PY___FILE__ (0)
35+
#define MICROPY_PY_MATH_CONSTANTS (0)
36+
#define MICROPY_PY_MATH_SPECIAL_FUNCTIONS (0)
37+
#define MICROPY_PY_MATH_FACTORIAL (0)
38+
#define MICROPY_PY_MATH_ISCLOSE (0)
39+
#define MICROPY_PY_IO_FILEIO (MICROPY_VFS)
40+
#define MICROPY_PY_SYS_PS1_PS2 (0)
41+
#define MICROPY_PY_UBINASCII_CRC32 (0)
42+
#define MICROPY_PY_URANDOM_EXTRA_FUNCS (0)
43+
44+
// Configure other options.
945
#define MICROPY_OBJ_REPR (MICROPY_OBJ_REPR_C)
1046
#define MICROPY_GC_STACK_ENTRY_TYPE uint16_t
1147
#define MICROPY_ALLOC_PATH_MAX (128)
@@ -16,50 +52,14 @@
1652
#define MICROPY_ALLOC_PARSE_CHUNK_INIT (64)
1753
#define MICROPY_DEBUG_PRINTER (&mp_debug_print)
1854
#define MICROPY_ENABLE_GC (1)
19-
#define MICROPY_ENABLE_FINALISER (1)
20-
#define MICROPY_STACK_CHECK (1)
2155
#define MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF (1)
22-
#define MICROPY_KBD_EXCEPTION (1)
2356
#define MICROPY_REPL_EVENT_DRIVEN (0)
24-
#define MICROPY_REPL_AUTO_INDENT (1)
25-
#define MICROPY_HELPER_REPL (1)
26-
#define MICROPY_ENABLE_SOURCE_LINE (1)
27-
#define MICROPY_MODULE_BUILTIN_INIT (1)
28-
#define MICROPY_MODULE_WEAK_LINKS (1)
29-
#define MICROPY_CAN_OVERRIDE_BUILTINS (1)
3057
#define MICROPY_USE_INTERNAL_ERRNO (1)
31-
#define MICROPY_ENABLE_SCHEDULER (1)
32-
#define MICROPY_PY_DESCRIPTORS (1)
33-
#define MICROPY_PY_BUILTINS_COMPLEX (0)
34-
#define MICROPY_PY_BUILTINS_STR_UNICODE (1)
35-
#define MICROPY_PY_BUILTINS_MEMORYVIEW (1)
36-
#define MICROPY_PY_BUILTINS_FROZENSET (1)
37-
#define MICROPY_PY_BUILTINS_ROUND_INT (1)
38-
#define MICROPY_PY_BUILTINS_INPUT (1)
39-
#define MICROPY_PY_BUILTINS_HELP (1)
4058
#define MICROPY_PY_BUILTINS_HELP_TEXT esp_help_text
41-
#define MICROPY_PY_BUILTINS_HELP_MODULES (1)
42-
#define MICROPY_PY___FILE__ (0)
43-
#define MICROPY_PY_ARRAY_SLICE_ASSIGN (1)
44-
#define MICROPY_PY_COLLECTIONS_DEQUE (1)
45-
#define MICROPY_PY_COLLECTIONS_ORDEREDDICT (1)
46-
#define MICROPY_PY_IO_IOBASE (1)
47-
#define MICROPY_PY_SYS_MAXSIZE (1)
48-
#define MICROPY_PY_SYS_STDFILES (1)
49-
#define MICROPY_PY_UERRNO (1)
50-
#define MICROPY_PY_UBINASCII (1)
51-
#define MICROPY_PY_UCTYPES (1)
52-
#define MICROPY_PY_UHASHLIB (1)
5359
#define MICROPY_PY_UHASHLIB_SHA1 (MICROPY_PY_USSL && MICROPY_SSL_AXTLS)
54-
#define MICROPY_PY_UHEAPQ (1)
5560
#define MICROPY_PY_UTIMEQ (1)
56-
#define MICROPY_PY_UJSON (1)
57-
#define MICROPY_PY_URANDOM (1)
5861
#define MICROPY_PY_URANDOM_SEED_INIT_FUNC (*WDEV_HWRNG)
59-
#define MICROPY_PY_URE (1)
60-
#define MICROPY_PY_USELECT (1)
6162
#define MICROPY_PY_UTIME_MP_HAL (1)
62-
#define MICROPY_PY_UZLIB (1)
6363
#define MICROPY_PY_LWIP (1)
6464
#define MICROPY_PY_LWIP_SOCK_RAW (1)
6565
#define MICROPY_PY_MACHINE (1)
@@ -79,8 +79,6 @@
7979
#define MICROPY_PY_WEBREPL (1)
8080
#define MICROPY_PY_WEBREPL_DELAY (20)
8181
#define MICROPY_PY_WEBREPL_STATIC_FILEBUF (1)
82-
#define MICROPY_PY_MICROPYTHON_MEM_INFO (1)
83-
#define MICROPY_PY_UOS (1)
8482
#define MICROPY_PY_UOS_INCLUDEFILE "ports/esp8266/moduos.c"
8583
#define MICROPY_PY_OS_DUPTERM (2)
8684
#define MICROPY_PY_UOS_DUPTERM_NOTIFY (1)
@@ -92,7 +90,6 @@
9290
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
9391
#define MICROPY_WARNINGS (1)
9492
#define MICROPY_PY_STR_BYTES_CMP_WARN (1)
95-
#define MICROPY_STREAMS_NON_BLOCK (1)
9693
#define MICROPY_STREAMS_POSIX_API (1)
9794
#define MICROPY_MODULE_FROZEN_LEXER mp_lexer_new_from_str32
9895

0 commit comments

Comments
 (0)
0