Skip to content

Commit

Permalink
adjust stack for SAMD21 to accomodate larger pystack -- update froze…
Browse files Browse the repository at this point in the history
…n module adafruit_busdevice
  • Loading branch information
jerryneedell committed Jul 28, 2020
1 parent debbf10 commit 2bdd622
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frozen/Adafruit_CircuitPython_BusDevice
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#define BOARD_USER_SAFE_MODE_ACTION "pressing both buttons at start up"

// Increase stack size slightly due to CPX library import nesting
#define CIRCUITPY_DEFAULT_STACK_SIZE (4760) //divisible by 8
#define CIRCUITPY_DEFAULT_STACK_SIZE (4248) //divisible by 8

#define USER_NEOPIXELS_PIN (&pin_PB23)

Expand Down
2 changes: 1 addition & 1 deletion ports/atmel-samd/mpconfigport.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
#endif

#ifndef CIRCUITPY_DEFAULT_STACK_SIZE
#define CIRCUITPY_DEFAULT_STACK_SIZE 4096
#define CIRCUITPY_DEFAULT_STACK_SIZE 3584
#endif

#ifndef SAMD21_BOD33_LEVEL
Expand Down
2 changes: 1 addition & 1 deletion py/circuitpy_mpconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ void supervisor_run_background_tasks_if_tick(void);
#endif

#ifndef CIRCUITPY_PYSTACK_SIZE
#define CIRCUITPY_PYSTACK_SIZE 1024
#define CIRCUITPY_PYSTACK_SIZE 1536
#endif

#define CIRCUITPY_BOOT_OUTPUT_FILE "/boot_out.txt"
Expand Down

0 comments on commit 2bdd622

Please sign in to comment.