Skip to content

Commit 7b3f760

Browse files
committed
address @tannewt changes: move and rename common files; remove PORT_HEAP_SIZE
1 parent 72c0326 commit 7b3f760

17 files changed

Lines changed: 32 additions & 35 deletions

File tree

ports/atmel-samd/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ include boards/$(BOARD)/mpconfigboard.mk
4040
# Port-specific
4141
include mpconfigport.mk
4242
# CircuitPython-specific
43-
include $(TOP)/ports/circuitpy-common/mpconfig_circuitpy.mk
43+
include $(TOP)/py/circuitpy_mpconfig.mk
4444

4545
# qstr definitions (must come before including py.mk)
4646
QSTR_DEFS = qstrdefsport.h
@@ -51,7 +51,7 @@ include $(TOP)/py/py.mk
5151
include $(TOP)/supervisor/supervisor.mk
5252

5353
# Include make rules and variables common across CircuitPython builds.
54-
include $(TOP)/ports/circuitpy-common/circuitpy_defns.mk
54+
include $(TOP)/py/circuitpy_defns.mk
5555

5656
CROSS_COMPILE = arm-none-eabi-
5757

ports/atmel-samd/mpconfigport.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#ifdef SAMD21
3434
#define CIRCUITPY_MCU_FAMILY samd21
3535
#define MICROPY_PY_SYS_PLATFORM "Atmel SAMD21"
36-
#define PORT_HEAP_SIZE (16384 + 4096)
3736
#define SPI_FLASH_MAX_BAUDRATE 8000000
3837
#define CIRCUITPY_DEFAULT_STACK_SIZE 4096
3938

@@ -64,8 +63,6 @@
6463
#ifdef SAMD51
6564
#define CIRCUITPY_MCU_FAMILY samd51
6665
#define MICROPY_PY_SYS_PLATFORM "MicroChip SAMD51"
67-
// 128KiB heap
68-
#define PORT_HEAP_SIZE (0x20000)
6966
#define SPI_FLASH_MAX_BAUDRATE 24000000
7067
// 24kiB stack
7168
#define CIRCUITPY_DEFAULT_STACK_SIZE 0x6000
@@ -89,6 +86,6 @@
8986
mp_obj_t playing_audio[AUDIO_DMA_CHANNEL_COUNT] \
9087
;
9188

92-
#include "ports/circuitpy-common/mpconfig_circuitpy.h"
89+
#include "py/circuitpy_mpconfig.h"
9390

9491
#endif // __INCLUDED_MPCONFIGPORT_H

ports/nrf/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ include boards/$(BOARD)/mpconfigboard.mk
4646
# Port-specific
4747
include mpconfigport.mk
4848
# CircuitPython-specific
49-
include $(TOP)/ports/circuitpy-common/mpconfig_circuitpy.mk
49+
include $(TOP)/py/circuitpy_mpconfig.mk
5050

5151
# qstr definitions (must come before including py.mk)
5252
QSTR_DEFS = qstrdefsport.h
@@ -57,7 +57,7 @@ include $(TOP)/py/py.mk
5757
include $(TOP)/supervisor/supervisor.mk
5858

5959
# Include make rules and variables common across CircuitPython builds.
60-
include $(TOP)/ports/circuitpy-common/circuitpy_defns.mk
60+
include $(TOP)/py/circuitpy_defns.mk
6161

6262
ifneq ($(SD), )
6363
include bluetooth/bluetooth_common.mk

ports/nrf/boards/feather_nrf52840_express/mpconfigboard.h

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

5656
#define CIRCUITPY_AUTORELOAD_DELAY_MS 500
5757

58-
// If you change this, then make sure to update the linker scripts as well to
59-
// make sure you don't overwrite code
60-
#define PORT_HEAP_SIZE (128 * 1024)
6158
// TODO #define CIRCUITPY_INTERNAL_NVM_SIZE 8192
6259

6360
#define BOARD_FLASH_SIZE (FLASH_SIZE - 0x4000 - CIRCUITPY_INTERNAL_NVM_SIZE)

ports/nrf/boards/makerdiary_nrf52840_mdk/mpconfigboard.h

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

4343
#define CIRCUITPY_AUTORELOAD_DELAY_MS 500
4444

45-
// If you change this, then make sure to update the linker scripts as well to
46-
// make sure you don't overwrite code
47-
#define PORT_HEAP_SIZE (128 * 1024)
4845
// TODO #define CIRCUITPY_INTERNAL_NVM_SIZE 8192
4946

5047
#define BOARD_FLASH_SIZE (FLASH_SIZE - 0x4000 - CIRCUITPY_INTERNAL_NVM_SIZE)

ports/nrf/boards/makerdiary_nrf52840_mdk_usb_dongle/mpconfigboard.h

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

3636
#define CIRCUITPY_AUTORELOAD_DELAY_MS 500
3737

38-
// If you change this, then make sure to update the linker scripts as well to
39-
// make sure you don't overwrite code
40-
#define PORT_HEAP_SIZE (128 * 1024)
4138
// TODO #define CIRCUITPY_INTERNAL_NVM_SIZE 8192
4239

4340
#define BOARD_FLASH_SIZE (FLASH_SIZE - 0x4000 - CIRCUITPY_INTERNAL_NVM_SIZE)

ports/nrf/boards/particle_argon/mpconfigboard.h

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

5858
#define CIRCUITPY_AUTORELOAD_DELAY_MS 500
5959

60-
// If you change this, then make sure to update the linker scripts as well to
61-
// make sure you don't overwrite code
62-
#define PORT_HEAP_SIZE (128 * 1024)
6360
// TODO #define CIRCUITPY_INTERNAL_NVM_SIZE 8192
6461

6562
#define BOARD_FLASH_SIZE (FLASH_SIZE - 0x4000 - CIRCUITPY_INTERNAL_NVM_SIZE)

ports/nrf/boards/particle_boron/mpconfigboard.h

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

5858
#define CIRCUITPY_AUTORELOAD_DELAY_MS 500
5959

60-
// If you change this, then make sure to update the linker scripts as well to
61-
// make sure you don't overwrite code
62-
#define PORT_HEAP_SIZE (128 * 1024)
6360
// TODO #define CIRCUITPY_INTERNAL_NVM_SIZE 8192
6461

6562
#define BOARD_FLASH_SIZE (FLASH_SIZE - 0x4000 - CIRCUITPY_INTERNAL_NVM_SIZE)

ports/nrf/boards/particle_xenon/mpconfigboard.h

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

5858
#define CIRCUITPY_AUTORELOAD_DELAY_MS 500
5959

60-
// If you change this, then make sure to update the linker scripts as well to
61-
// make sure you don't overwrite code
62-
#define PORT_HEAP_SIZE (128 * 1024)
6360
// TODO #define CIRCUITPY_INTERNAL_NVM_SIZE 8192
6461

6562
#define BOARD_FLASH_SIZE (FLASH_SIZE - 0x4000 - CIRCUITPY_INTERNAL_NVM_SIZE)

ports/nrf/boards/pca10056/mpconfigboard.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#define MICROPY_HW_MCU_NAME "nRF52840"
3131
#define MICROPY_PY_SYS_PLATFORM "nRF52840-DK"
3232

33-
#define PORT_HEAP_SIZE (128 * 1024)
3433
#define CIRCUITPY_AUTORELOAD_DELAY_MS 500
3534

3635
#define MICROPY_HW_LED_STATUS (&pin_P0_13)

0 commit comments

Comments
 (0)