From acf4b1bedeabe18a7b4b969e7156217ae6bde10a Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Tue, 19 May 2020 11:43:57 -0700 Subject: [PATCH] Remove reverse methods from per-board defs --- .../boards/circuitplayground_express_crickit/mpconfigboard.h | 2 -- ports/atmel-samd/boards/trinket_m0_haxpress/mpconfigboard.h | 2 -- ports/atmel-samd/mpconfigport.h | 1 + py/circuitpy_mpconfig.h | 1 + 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ports/atmel-samd/boards/circuitplayground_express_crickit/mpconfigboard.h b/ports/atmel-samd/boards/circuitplayground_express_crickit/mpconfigboard.h index 17204a31a4..312fd26268 100644 --- a/ports/atmel-samd/boards/circuitplayground_express_crickit/mpconfigboard.h +++ b/ports/atmel-samd/boards/circuitplayground_express_crickit/mpconfigboard.h @@ -32,8 +32,6 @@ // Increase stack size slightly due to CPX library import nesting #define CIRCUITPY_DEFAULT_STACK_SIZE (4760) // divisible by 8 -#define MICROPY_PY_REVERSE_SPECIAL_METHODS (0) - #define DEFAULT_I2C_BUS_SCL (&pin_PB03) #define DEFAULT_I2C_BUS_SDA (&pin_PB02) diff --git a/ports/atmel-samd/boards/trinket_m0_haxpress/mpconfigboard.h b/ports/atmel-samd/boards/trinket_m0_haxpress/mpconfigboard.h index 182c6fa050..af473b1288 100644 --- a/ports/atmel-samd/boards/trinket_m0_haxpress/mpconfigboard.h +++ b/ports/atmel-samd/boards/trinket_m0_haxpress/mpconfigboard.h @@ -18,8 +18,6 @@ #define CALIBRATE_CRYSTALLESS 1 -#define MICROPY_PY_REVERSE_SPECIAL_METHODS (0) - #define DEFAULT_I2C_BUS_SCL (&pin_PA09) #define DEFAULT_I2C_BUS_SDA (&pin_PA08) diff --git a/ports/atmel-samd/mpconfigport.h b/ports/atmel-samd/mpconfigport.h index 63e92c9676..1aa305cd30 100644 --- a/ports/atmel-samd/mpconfigport.h +++ b/ports/atmel-samd/mpconfigport.h @@ -47,6 +47,7 @@ #define MICROPY_PY_FUNCTION_ATTRS (0) // MICROPY_PY_UJSON depends on MICROPY_PY_IO #define MICROPY_PY_IO (0) +#define MICROPY_PY_REVERSE_SPECIAL_METHODS (0) #define MICROPY_PY_UJSON (0) #define MICROPY_PY_UERRNO_LIST \ X(EPERM) \ diff --git a/py/circuitpy_mpconfig.h b/py/circuitpy_mpconfig.h index 3e5affda94..5f2605c92f 100644 --- a/py/circuitpy_mpconfig.h +++ b/py/circuitpy_mpconfig.h @@ -623,6 +623,7 @@ extern const struct _mp_obj_module_t ustack_module; #else #define ULAB_MODULE #endif + #if MICROPY_PY_URE #define RE_MODULE { MP_ROM_QSTR(MP_QSTR_re), MP_ROM_PTR(&mp_module_ure) }, #else