8000 Add PY_FUNCTION_ATTRS and PY_REVERSE_SPECIAL_METHODS to ports missing… · eightycc/circuitpython@3086297 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3086297

Browse files
committed
Add PY_FUNCTION_ATTRS and PY_REVERSE_SPECIAL_METHODS to ports missing one or both.
1 parent 04e6363 commit 3086297

File tree

5 files changed

+13
-0
lines changed

5 files changed

+13
-0
lines changed

ports/cxd56/mpconfigport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
#define MICROPY_PY_SYS_PLATFORM "CXD56"
1010

11+
#define MICROPY_PY_FUNCTION_ATTRS (1)
12+
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1)
13+
1114
// 64kiB stack
1215
#define CIRCUITPY_DEFAULT_STACK_SIZE (0x10000)
1316

ports/espressif/mpconfigport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
#define MICROPY_NLR_SETJMP (1)
2323
#define CIRCUITPY_DEFAULT_STACK_SIZE 0x6000
2424

25+
#define MICROPY_PY_FUNCTION_ATTRS (1)
26+
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1)
27+
2528
// Nearly all boards have this because it is used to enter the ROM bootloader.
2629
#ifndef CIRCUITPY_BOOT_BUTTON
2730
#if defined(CONFIG_IDF_TARGET_ESP32C2) || defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32C6) || defined(CONFIG_IDF_TARGET_ESP32H2)

ports/litex/mpconfigport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#define CIRCUITPY_INTERNAL_NVM_SIZE (0)
1111
#define MICROPY_NLR_THUMB (0)
12+
#define MICROPY_PY_FUNCTION_ATTRS (1)
1213
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1)
1314

1415
#include "py/circuitpy_mpconfig.h"

ports/raspberrypi/mpconfigport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
#define MICROPY_PY_SYS_PLATFORM "RP2350"
1717
#endif
1818

19+
#define MICROPY_PY_FUNCTION_ATTRS (1)
20+
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1)
21+
1922
// Setting a non-default value also requires a non-default link.ld
2023
#ifndef CIRCUITPY_FIRMWARE_SIZE
2124
#define CIRCUITPY_FIRMWARE_SIZE (1020 * 1024)

ports/renode/mpconfigport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
#define MICROPY_PY_SYS_PLATFORM "Renode"
1010

11+
#define MICROPY_PY_FUNCTION_ATTRS (1)
12+
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1)
13+
1114
#define MICROPY_USE_INTERNAL_PRINTF (1)
1215

1316
// This also includes mpconfigboard.h.

0 commit comments

Comments
 (0)
0