Skip to content

Commit 71d1b0e

Browse files
SDK 2.2.1-develop, enable MIDI, add IRQ slots
Fixes #3189 Increase the shared IRQ handler slots by 2 to account for the RP2350 doorbells taking up 2 of them (since we want to allow users to have their own doorbell handlers). Move to the latest -develop version of the SDK since we need to rebuild the SDK anyway. Enable TinyUSB MIDI support. Right now there's not a library for it. but with this folks like @madias123 or others who have asked for it can start the work.
1 parent 5e266ee commit 71d1b0e

File tree

16 files changed

+13
-7
lines changed

16 files changed

+13
-7
lines changed

cores/rp2040/RP2040Support.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ class _MFIFO {
7272

7373
void registerCore() {
7474
#ifndef __FREERTOS
75-
multicore_doorbell_clear_current_core(_doorbell);
7675
uint32_t irq = multicore_doorbell_irq_num(_doorbell);
7776
irq_add_shared_handler(irq, _irq, 128);
7877
irq_set_enabled(irq, true);

include/rp2040/pico_base/pico/version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#define PICO_SDK_VERSION_MAJOR 2
1515
#define PICO_SDK_VERSION_MINOR 2
16-
#define PICO_SDK_VERSION_REVISION 0
17-
#define PICO_SDK_VERSION_STRING "2.2.0"
16+
#define PICO_SDK_VERSION_REVISION 1
17+
#define PICO_SDK_VERSION_STRING "2.2.1-develop"
1818

1919
#endif

include/rp2350/pico_base/pico/version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#define PICO_SDK_VERSION_MAJOR 2
1515
#define PICO_SDK_VERSION_MINOR 2
16-
#define PICO_SDK_VERSION_REVISION 0
17-
#define PICO_SDK_VERSION_STRING "2.2.0"
16+
#define PICO_SDK_VERSION_REVISION 1
17+
#define PICO_SDK_VERSION_STRING "2.2.1-develop"
1818

1919
#endif

include/tusb_config.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
#define CFG_TUD_HID (2)
7474
#define CFG_TUD_CDC (1)
7575
#define CFG_TUD_MSC (1)
76-
#define CFG_TUD_MIDI (0)
76+
#define CFG_TUD_MIDI (1)
7777
#define CFG_TUD_VENDOR (0)
7878

7979
#define CFG_TUD_CDC_RX_BUFSIZE (256)
@@ -84,6 +84,10 @@
8484
// HID buffer size Should be sufficient to hold ID (if any) + Data
8585
#define CFG_TUD_HID_EP_BUFSIZE (64)
8686

87+
// MIDI
88+
#define CFG_TUD_MIDI_RX_BUFSIZE (64)
89+
#define CFG_TUD_MIDI_TX_BUFSIZE (64)
90+
8791
#ifdef __cplusplus
8892
}
8993
#endif

lib/platform_def.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
-DPICO_RP2040_USB_DEVICE_UFRAME_FIX=1
7171
-DPICO_USE_BLOCKED_RAM=0
7272
-DPICO_XOSC_STARTUP_DELAY_MULTIPLIER=64
73+
-DPICO_MAX_SHARED_IRQ_HANDLERS=6
7374

7475
-DPICO_CYW43_ARCH_HEADER=stdint.h
7576
-DCYW43_TASK_STACK_SIZE=1024

lib/rp2040/liblwip-bt.a

0 Bytes
Binary file not shown.

lib/rp2040/liblwip.a

0 Bytes
Binary file not shown.

lib/rp2040/libpico.a

33.3 KB
Binary file not shown.

lib/rp2350-riscv/liblwip-bt.a

0 Bytes
Binary file not shown.

lib/rp2350-riscv/liblwip.a

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)