File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 58
58
#define MICROPY_PY_URANDOM_EXTRA_FUNCS (0)
59
59
#define MICROPY_PY_STRUCT (0)
60
60
#define MICROPY_PY_SYS (1)
61
- // If you change MICROPY_LONGINT_IMPL, also change MPY_TOOL_LONGINT_IMPL in mpconfigport.mk.
62
- #define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_NONE)
63
61
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
64
62
#define MICROPY_STREAMS_NON_BLOCK (1)
65
63
@@ -140,12 +138,17 @@ typedef long mp_off_t;
140
138
#define CIRCUITPY_MCU_FAMILY samd21
141
139
#define MICROPY_PY_SYS_PLATFORM "Atmel SAMD21"
142
140
#define PORT_HEAP_SIZE (16384 + 4096)
141
+ // If you change MICROPY_LONGINT_IMPL, also change MPY_TOOL_LONGINT_IMPL in mpconfigport.mk.
142
+ #define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_NONE)
143
143
#endif
144
144
145
145
#ifdef SAMD51
146
146
#define CIRCUITPY_MCU_FAMILY samd51
147
147
#define MICROPY_PY_SYS_PLATFORM "MicroChip SAMD51"
148
148
#define PORT_HEAP_SIZE (0x20000) // 128KiB
149
+ // If you change MICROPY_LONGINT_IMPL, also change MPY_TOOL_LONGINT_IMPL in mpconfigport.mk.
150
+ #define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
151
+ #define MP_SSIZE_MAX (0x7fffffff)
149
152
#endif
150
153
151
154
// extra built in modules to add to the list of known ones
Original file line number Diff line number Diff line change 1
1
# Define an equivalent for MICROPY_LONGINT_IMPL, to pass to $(MPY-TOOL) in py/mkrules.mk
2
2
# $(MPY-TOOL) needs to know what kind of longint to use (if any) to freeze long integers.
3
3
# This should correspond to the MICROPY_LONGINT_IMPL definition in mpconfigport.h.
4
+ ifeq ($(CHIP_FAMILY ) , samd21)
4
5
MPY_TOOL_LONGINT_IMPL = -mlongint-impl=none
6
+ endif
5
7
6
- INTERNAL_LIBM = 1
8
+ ifeq ($(CHIP_FAMILY ) , samd51)
9
+ MPY_TOOL_LONGINT_IMPL = -mlongint-impl=mpz
10
+ endif
7
11
12
+ INTERNAL_LIBM = 1
You can’t perform that action at this time.
0 commit comments