From 30862972fc432fd543518746d29977adf4bda8cc Mon Sep 17 00:00:00 2001 From: eightycc Date: Mon, 17 Mar 2025 16:14:51 -0700 Subject: [PATCH 1/3] Add PY_FUNCTION_ATTRS and PY_REVERSE_SPECIAL_METHODS to ports missing one or both. --- ports/cxd56/mpconfigport.h | 3 +++ ports/espressif/mpconfigport.h | 3 +++ ports/litex/mpconfigport.h | 1 + ports/raspberrypi/mpconfigport.h | 3 +++ ports/renode/mpconfigport.h | 3 +++ 5 files changed, 13 insertions(+) diff --git a/ports/cxd56/mpconfigport.h b/ports/cxd56/mpconfigport.h index 3bcb252868786..b779b521ddaf9 100644 --- a/ports/cxd56/mpconfigport.h +++ b/ports/cxd56/mpconfigport.h @@ -8,6 +8,9 @@ #define MICROPY_PY_SYS_PLATFORM "CXD56" +#define MICROPY_PY_FUNCTION_ATTRS (1) +#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1) + // 64kiB stack #define CIRCUITPY_DEFAULT_STACK_SIZE (0x10000) diff --git a/ports/espressif/mpconfigport.h b/ports/espressif/mpconfigport.h index 98c1986240b73..50a5b414ae450 100644 --- a/ports/espressif/mpconfigport.h +++ b/ports/espressif/mpconfigport.h @@ -22,6 +22,9 @@ #define MICROPY_NLR_SETJMP (1) #define CIRCUITPY_DEFAULT_STACK_SIZE 0x6000 +#define MICROPY_PY_FUNCTION_ATTRS (1) +#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1) + // Nearly all boards have this because it is used to enter the ROM bootloader. #ifndef CIRCUITPY_BOOT_BUTTON #if defined(CONFIG_IDF_TARGET_ESP32C2) || defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32C6) || defined(CONFIG_IDF_TARGET_ESP32H2) diff --git a/ports/litex/mpconfigport.h b/ports/litex/mpconfigport.h index 8e7537af6a63a..50986d16026c2 100644 --- a/ports/litex/mpconfigport.h +++ b/ports/litex/mpconfigport.h @@ -9,6 +9,7 @@ #define CIRCUITPY_INTERNAL_NVM_SIZE (0) #define MICROPY_NLR_THUMB (0) +#define MICROPY_PY_FUNCTION_ATTRS (1) #define MICROPY_PY_REVERSE_SPECIAL_METHODS (1) #include "py/circuitpy_mpconfig.h" diff --git a/ports/raspberrypi/mpconfigport.h b/ports/raspberrypi/mpconfigport.h index 1181517fdf9a0..00dcafe10fe11 100644 --- a/ports/raspberrypi/mpconfigport.h +++ b/ports/raspberrypi/mpconfigport.h @@ -16,6 +16,9 @@ #define MICROPY_PY_SYS_PLATFORM "RP2350" #endif +#define MICROPY_PY_FUNCTION_ATTRS (1) +#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1) + // Setting a non-default value also requires a non-default link.ld #ifndef CIRCUITPY_FIRMWARE_SIZE #define CIRCUITPY_FIRMWARE_SIZE (1020 * 1024) diff --git a/ports/renode/mpconfigport.h b/ports/renode/mpconfigport.h index 185a884ed313e..19937d749d47b 100644 --- a/ports/renode/mpconfigport.h +++ b/ports/renode/mpconfigport.h @@ -8,6 +8,9 @@ #define MICROPY_PY_SYS_PLATFORM "Renode" +#define MICROPY_PY_FUNCTION_ATTRS (1) +#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1) + #define MICROPY_USE_INTERNAL_PRINTF (1) // This also includes mpconfigboard.h. From b5521eeb5f7c4c22e7e3c4d42cbb253063da4b0c Mon Sep 17 00:00:00 2001 From: eightycc Date: Mon, 17 Mar 2025 16:21:13 -0700 Subject: [PATCH 2/3] Add PY_REVERSE_SPECIAL_METHODS to broadcom. --- ports/broadcom/mpconfigport.h | 1 + 1 file changed, 1 insertion(+) diff --git a/ports/broadcom/mpconfigport.h b/ports/broadcom/mpconfigport.h index b9990be75ec06..648259720f800 100644 --- a/ports/broadcom/mpconfigport.h +++ b/ports/broadcom/mpconfigport.h @@ -15,6 +15,7 @@ #define MICROPY_PY_SYS_PLATFORM "BROADCOM" #define MICROPY_PY_BUILTINS_NOTIMPLEMENTED (1) #define MICROPY_PY_FUNCTION_ATTRS (1) +#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1) #if BCM_VERSION == 2837 || BCM_VERSION == 2711 #define MICROPY_OBJ_REPR (MICROPY_OBJ_REPR_A) #elif BCM_VERSION == 2835 From 4be3a3b8d141b7fc98afb886bdfbc324b67dbb56 Mon Sep 17 00:00:00 2001 From: eightycc Date: Mon, 17 Mar 2025 16:58:55 -0700 Subject: [PATCH 3/3] Fix misplaced defines in espressif port. --- ports/espressif/mpconfigport.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ports/espressif/mpconfigport.h b/ports/espressif/mpconfigport.h index 50a5b414ae450..443a59b0474bd 100644 --- a/ports/espressif/mpconfigport.h +++ b/ports/espressif/mpconfigport.h @@ -17,14 +17,14 @@ #define CIRCUITPY_DIGITALIO_HAVE_INPUT_ONLY (1) +#define MICROPY_PY_FUNCTION_ATTRS (1) +#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1) + #include "py/circuitpy_mpconfig.h" #define MICROPY_NLR_SETJMP (1) #define CIRCUITPY_DEFAULT_STACK_SIZE 0x6000 -#define MICROPY_PY_FUNCTION_ATTRS (1) -#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1) - // Nearly all boards have this because it is used to enter the ROM bootloader. #ifndef CIRCUITPY_BOOT_BUTTON #if defined(CONFIG_IDF_TARGET_ESP32C2) || defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32C6) || defined(CONFIG_IDF_TARGET_ESP32H2) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy