Skip to content

Commit b1a0ce4

Browse files
jimmodpgeorge
authored andcommitted
rp2/mpconfigport.h: Use the "extra" feature level.
This commit is a no-op change to simplify existing config. Signed-off-by: Jim Mussared <[email protected]>
1 parent 3041881 commit b1a0ce4

File tree

1 file changed

+19
-59
lines changed

1 file changed

+19
-59
lines changed

ports/rp2/mpconfigport.h

Lines changed: 19 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838
#define MICROPY_HW_ENABLE_UART_REPL (0) // useful if there is no USB
3939
#define MICROPY_HW_ENABLE_USBDEV (1)
4040

41+
#ifndef MICROPY_CONFIG_ROM_LEVEL
42+
#define MICROPY_CONFIG_ROM_LEVEL (MICROPY_CONFIG_ROM_LEVEL_EXTRA_FEATURES)
43+
#endif
44+
4145
// Memory allocation policies
4246
#define MICROPY_GC_STACK_ENTRY_TYPE uint16_t
4347
#define MICROPY_ALLOC_PATH_MAX (128)
@@ -51,84 +55,41 @@
5155
#define MICROPY_EMIT_INLINE_THUMB_FLOAT (0)
5256
#define MICROPY_EMIT_INLINE_THUMB_ARMV7M (0)
5357

58+
// Features currently overriden for rp2, planned to be brought in line with
59+
// other ports
60+
#define MICROPY_COMP_MODULE_CONST (0)
61+
#define MICROPY_COMP_RETURN_IF_EXPR (0)
62+
#define MICROPY_COMP_TRIPLE_TUPLE_ASSIGN (0)
63+
#define MICROPY_OPT_COMPUTED_GOTO (0)
64+
#define MICROPY_OPT_LOAD_ATTR_FAST_PATH (0)
65+
#define MICROPY_OPT_MAP_LOOKUP_CACHE (0)
66+
#define MICROPY_OPT_MATH_FACTORIAL (0)
67+
#define MICROPY_OPT_MPZ_BITWISE (0)
68+
#define MICROPY_PY_BUILTINS_EXECFILE (0)
69+
#define MICROPY_PY_BUILTINS_NOTIMPLEMENTED (0)
70+
#define MICROPY_REPL_EMACS_KEYS (0)
71+
#define MICROPY_REPL_INFO (0)
72+
5473
// Python internal features
5574
#define MICROPY_READER_VFS (1)
5675
#define MICROPY_ENABLE_GC (1)
57-
#define MICROPY_ENABLE_FINALISER (1)
58-
#define MICROPY_STACK_CHECK (1)
5976
#define MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF (1)
60-
#define MICROPY_KBD_EXCEPTION (1)
61-
#define MICROPY_HELPER_REPL (1)
62-
#define MICROPY_REPL_AUTO_INDENT (1)
6377
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
64-
#define MICROPY_ENABLE_SOURCE_LINE (1)
6578
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
66-
#define MICROPY_STREAMS_NON_BLOCK (1)
67-
#define MICROPY_MODULE_BUILTIN_INIT (1)
68-
#define MICROPY_MODULE_WEAK_LINKS (1)
69-
#define MICROPY_CAN_OVERRIDE_BUILTINS (1)
70-
#define MICROPY_ENABLE_SCHEDULER (1)
7179
#define MICROPY_SCHEDULER_DEPTH (8)
7280

7381
// Fine control over Python builtins, classes, modules, etc
74-
#define MICROPY_PY_FUNCTION_ATTRS (1)
75-
#define MICROPY_PY_DESCRIPTORS (1)
76-
#define MICROPY_PY_DELATTR_SETATTR (1)
77-
#define MICROPY_PY_FSTRINGS (1)
78-
#define MICROPY_PY_BUILTINS_STR_UNICODE (1)
79-
#define MICROPY_PY_BUILTINS_STR_CENTER (1)
80-
#define MICROPY_PY_BUILTINS_STR_PARTITION (1)
81-
#define MICROPY_PY_BUILTINS_STR_SPLITLINES (1)
82-
#define MICROPY_PY_BUILTINS_MEMORYVIEW (1)
83-
#define MICROPY_PY_BUILTINS_SLICE_ATTRS (1)
84-
#define MICROPY_PY_BUILTINS_SLICE_INDICES (1)
85-
#define MICROPY_PY_BUILTINS_FROZENSET (1)
86-
#define MICROPY_PY_BUILTINS_ROUND_INT (1)
87-
#define MICROPY_PY_ALL_SPECIAL_METHODS (1)
88-
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1)
89-
#define MICROPY_PY_BUILTINS_COMPILE (1)
90-
#define MICROPY_PY_BUILTINS_INPUT (1)
91-
#define MICROPY_PY_BUILTINS_POW3 (1)
92-
#define MICROPY_PY_BUILTINS_HELP (1)
9382
#define MICROPY_PY_BUILTINS_HELP_TEXT rp2_help_text
94-
#define MICROPY_PY_BUILTINS_HELP_MODULES (1)
95-
#define MICROPY_PY_MICROPYTHON_MEM_INFO (1)
96-
#define MICROPY_PY_ARRAY_SLICE_ASSIGN (1)
97-
#define MICROPY_PY_COLLECTIONS_DEQUE (1)
98-
#define MICROPY_PY_COLLECTIONS_ORDEREDDICT (1)
99-
#define MICROPY_PY_MATH_SPECIAL_FUNCTIONS (1)
100-
#define MICROPY_PY_MATH_FACTORIAL (1)
101-
#define MICROPY_PY_MATH_ISCLOSE (1)
102-
#define MICROPY_PY_CMATH (1)
103-
#define MICROPY_PY_IO_IOBASE (1)
104-
#define MICROPY_PY_IO_FILEIO (1)
105-
#define MICROPY_PY_SYS_MAXSIZE (1)
106-
#define MICROPY_PY_SYS_STDFILES (1)
107-
#define MICROPY_PY_SYS_STDIO_BUFFER (1)
10883
#define MICROPY_PY_SYS_PLATFORM "rp2"
109-
#define MICROPY_PY_UERRNO (1)
11084
#define MICROPY_PY_THREAD (1)
11185
#define MICROPY_PY_THREAD_GIL (0)
11286

11387
// Extended modules
11488
#define MICROPY_EPOCH_IS_1970 (1)
115-
#define MICROPY_PY_UASYNCIO (1)
116-
#define MICROPY_PY_UCTYPES (1)
117-
#define MICROPY_PY_UZLIB (1)
118-
#define MICROPY_PY_UJSON (1)
119-
#define MICROPY_PY_URE (1)
12089
#define MICROPY_PY_URE_MATCH_GROUPS (1)
12190
#define MICROPY_PY_URE_MATCH_SPAN_START_END (1)
122-
#define MICROPY_PY_URE_SUB (1)
123-
#define MICROPY_PY_UHEAPQ (1)
124-
#define MICROPY_PY_UHASHLIB (1)
125-
#define MICROPY_PY_UBINASCII (1)
126-
#define MICROPY_PY_UBINASCII_CRC32 (1)
12791
#define MICROPY_PY_UTIME_MP_HAL (1)
128-
#define MICROPY_PY_URANDOM (1)
129-
#define MICROPY_PY_URANDOM_EXTRA_FUNCS (1)
13092
#define MICROPY_PY_URANDOM_SEED_INIT_FUNC (rosc_random_u32())
131-
#define MICROPY_PY_USELECT (1)
13293
#define MICROPY_PY_MACHINE (1)
13394
#define MICROPY_PY_MACHINE_PIN_MAKE_NEW mp_pin_make_new
13495
#define MICROPY_PY_MACHINE_PULSE (1)
@@ -141,7 +102,6 @@
141102
#define MICROPY_PY_MACHINE_SPI_MSB (SPI_MSB_FIRST)
142103
#define MICROPY_PY_MACHINE_SPI_LSB (SPI_LSB_FIRST)
143104
#define MICROPY_PY_MACHINE_SOFTSPI (1)
144-
#define MICROPY_PY_FRAMEBUF (1)
145105
#define MICROPY_PY_ONEWIRE (1)
146106
#define MICROPY_VFS (1)
147107
#define MICROPY_VFS_LFS2 (1)

0 commit comments

Comments
 (0)