Skip to content

Commit a435669

Browse files
Update MIDIUSB to fix writePacket (#3196)
1 parent 4e2b030 commit a435669

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

cores/rp2040/StackThunk.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,14 @@ extern "C" {
2929
uint32_t *stack_thunk_save = nullptr; /* Saved A1 while in BearSSL */
3030
uint32_t stack_thunk_refcnt = 0;
3131

32-
/* Largest stack usage seen in the wild at 6120 */
32+
/* Largest stack usage seen in the wild at 6120 */
3333
#define _stackSize (6400/4)
3434
#define _stackPaint 0xdeadbeef
3535

3636
/* Add a reference, and allocate the stack if necessary */
3737
void stack_thunk_add_ref() {
3838
stack_thunk_refcnt++;
3939
if (stack_thunk_refcnt == 1) {
40-
// The stack must be in DRAM, or an Soft WDT will follow. Not sure why,
41-
// maybe too much time is consumed with the non32-bit exception handler.
42-
// Also, interrupt handling on an IRAM stack would be very slow.
43-
// Strings on the stack would be very slow to access as well.
4440
stack_thunk_ptr = (uint32_t *)malloc(_stackSize * sizeof(uint32_t));
4541
if (!stack_thunk_ptr) {
4642
// This is a fatal error, stop the sketch

libraries/MIDIUSB

0 commit comments

Comments
 (0)