10000 nrf: Enable more features for all targets. · micropython/micropython@caaaa2b · GitHub
[go: up one dir, main page]

Skip to content

Commit caaaa2b

Browse files
committed
nrf: Enable more features for all targets.
Enabling the following features for all targets, except for nrf51 targets compiled to be used with SoftDevice: - MICROPY_PY_ARRAY_SLICE_ASSIGN - MICROPY_PY_SYS_STDFILES - MICROPY_PY_UBINASCII
1 parent 0a79e18 commit caaaa2b

File tree

5 files changed

+60
-3
lines changed

5 files changed

+60
-3
lines changed

ports/nrf/mpconfigdevice_nrf51822.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,27 @@
3535
#endif
3636

3737
// Board overridable feature configuration.
38+
39+
#ifndef MICROPY_PY_ARRAY_SLICE_ASSIGN
40+
#if defined(BLUETOOTH_SD)
41+
#define MICROPY_PY_ARRAY_SLICE_ASSIGN (0)
42+
#else
43+
#define MICROPY_PY_ARRAY_SLICE_ASSIGN (1)
44+
#endif
45+
#endif
46+
47+
#ifndef MICROPY_PY_SYS_STDFILES
48+
#if defined(BLUETOOTH_SD)
49+
#define MICROPY_PY_SYS_STDFILES (0)
50+
#else
51+
#define MICROPY_PY_SYS_STDFILES (1)
52+
#endif
53+
#endif
54+
55+
#ifndef MICROPY_PY_UBINASCII
56+
#if defined(BLUETOOTH_SD)
57+
#define MICROPY_PY_UBINASCII (0)
58+
#else
59+
#define MICROPY_PY_UBINASCII (1)
60+
#endif
61+
#endif

ports/nrf/mpconfigdevice_nrf52832.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,15 @@
3535
#endif
3636

3737
// Board overridable feature configuration.
38+
39+
#ifndef MICROPY_PY_ARRAY_SLICE_ASSIGN
40+
#define MICROPY_PY_ARRAY_SLICE_ASSIGN (1)
41+
#endif
42+
43+
#ifndef MICROPY_PY_SYS_STDFILES
44+
#define MICROPY_PY_SYS_STDFILES (1)
45+
#endif
46+
47+
#ifndef MICROPY_PY_UBINASCII
48+
#define MICROPY_PY_UBINASCII (1)
49+
#endif

ports/nrf/ 8000 mpconfigdevice_nrf52840.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,15 @@
3535
#endif
3636

3737
// Board overridable feature configuration.
38+
39+
#ifndef MICROPY_PY_ARRAY_SLICE_ASSIGN
40+
#define MICROPY_PY_ARRAY_SLICE_ASSIGN (1)
41+
#endif
42+
43+
#ifndef MICROPY_PY_SYS_STDFILES
44+
#define MICROPY_PY_SYS_STDFILES (1)
45+
#endif
46+
47+
#ifndef MICROPY_PY_UBINASCII
48+
#define MICROPY_PY_UBINASCII (1)
49+
#endif

ports/nrf/mpconfigdevice_nrf9160.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,15 @@
3535
#endif
3636

3737
// Board overridable feature configuration.
38+
39+
#ifndef MICROPY_PY_ARRAY_SLICE_ASSIGN
40+
#define MICROPY_PY_ARRAY_SLICE_ASSIGN (1)
41+
#endif
42+
43+
#ifndef MICROPY_PY_SYS_STDFILES
44+
#define MICROPY_PY_SYS_STDFILES (1)
45+
#endif
46+
47+
#ifndef MICROPY_PY_UBINASCII
48+
#define MICROPY_PY_UBINASCII (1)
49+
#endif

ports/nrf/mpconfigport.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,19 +117,16 @@
117117
#define MICROPY_MODULE_BUILTIN_INIT (1)
118118
#define MICROPY_PY_ALL_SPECIAL_METHODS (0)
119119
#define MICROPY_PY_MICROPYTHON_MEM_INFO (1)
120-
#define MICROPY_PY_ARRAY_SLICE_ASSIGN (0)
121120
#define MICROPY_PY_BUILTINS_SLICE_ATTRS (0)
122121
#define MICROPY_PY_SYS_EXIT (1)
123122
#define MICROPY_PY_SYS_MAXSIZE (1)
124-
#define MICROPY_PY_SYS_STDFILES (0)
125123
#define MICROPY_PY_SYS_STDIO_BUFFER (0)
126124
#define MICROPY_PY_COLLECTIONS_ORDEREDDICT (0)
127125
#define MICROPY_PY_MATH_SPECIAL_FUNCTIONS (0)
128126
#define MICROPY_PY_CMATH (0)
129127
#define MICROPY_PY_IO (0)
130128
#define MICROPY_PY_IO_FILEIO (0)
131129
#define MICROPY_PY_UERRNO (0)
132-
#define MICROPY_PY_UBINASCII (0)
133130
#define MICROPY_PY_URANDOM (1)
134131
#define MICROPY_PY_URANDOM_EXTRA_FUNCS (1)
135132
#define MICROPY_PY_UCTYPES (0)

0 commit comments

Comments
 (0)
0