Skip to content

Commit 00d988e

Browse files
committed
Apply changes needed for USB MSC and DaynaPORT
Made nesaccery changes to tsub_config.h and files that support the cyw43 library for DaynaPORT support.
1 parent 4de3ea9 commit 00d988e

15 files changed

+6
-12
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
url = https://github.com/earlephilhower/ArduinoCore-API.git
44
[submodule "pico-sdk"]
55
path = pico-sdk
6-
url = https://github.com/raspberrypi/pico-sdk.git
6+
url = https://github.com/rabbitholecomputing/pico-sdk.git
77
[submodule "system/pyserial"]
88
path = tools/pyserial
99
url = https://github.com/pyserial/pyserial.git

include/rp2040/tusb_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
#define CFG_TUD_CDC_RX_BUFSIZE (256)
8080
#define CFG_TUD_CDC_TX_BUFSIZE (256)
8181

82-
#define CFG_TUD_MSC_EP_BUFSIZE (64)
82+
#define CFG_TUD_MSC_EP_BUFSIZE (1024*4)
8383

8484
// HID buffer size Should be sufficient to hold ID (if any) + Data
8585
#define CFG_TUD_HID_EP_BUFSIZE (64)

lib/core_wrap.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,4 @@
6161
-Wl,--wrap=netif_add
6262
-Wl,--wrap=netif_remove
6363

64-
-Wl,--wrap=cyw43_cb_process_ethernet
65-
-Wl,--wrap=cyw43_cb_tcpip_set_link_up
66-
-Wl,--wrap=cyw43_cb_tcpip_set_link_down
67-
-Wl,--wrap=cyw43_tcpip_link_status
68-
-Wl,--wrap=cyw43_cb_tcpip_init
69-
-Wl,--wrap=cyw43_cb_tcpip_deinit
70-
7164
-Wl,--wrap=__stack_chk_fail

lib/rp2040/libipv4-big.a

-1.55 MB
Binary file not shown.

lib/rp2040/libipv4-bt-big.a

-6.67 MB
Binary file not shown.

lib/rp2040/libipv4-bt.a

-6.67 MB
Binary file not shown.

lib/rp2040/libipv4-ipv6-big.a

-1.93 MB
Binary file not shown.

lib/rp2040/libipv4-ipv6-bt-big.a

-7.04 MB
Binary file not shown.

lib/rp2040/libipv4-ipv6-bt.a

-7.04 MB
Binary file not shown.

lib/rp2040/libipv4-ipv6.a

-1.93 MB
Binary file not shown.

lib/rp2040/libipv4.a

-1.55 MB
Binary file not shown.

lib/rp2040/libpico.a

-392 KB
Binary file not shown.

pico-sdk

Submodule pico-sdk updated 261 files

tools/libpico/tusb_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
#define CFG_TUD_CDC_RX_BUFSIZE (256)
8080
#define CFG_TUD_CDC_TX_BUFSIZE (256)
8181

82-
#define CFG_TUD_MSC_EP_BUFSIZE (64)
82+
#define CFG_TUD_MSC_EP_BUFSIZE (1024*4)
8383

8484
// HID buffer size Should be sufficient to hold ID (if any) + Data
8585
#define CFG_TUD_HID_EP_BUFSIZE (64)

tools/platformio-build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,8 @@ def configure_usb_flags(cpp_defines):
369369
def configure_network_flags(cpp_defines):
370370
env.Append(CPPDEFINES=[
371371
("PICO_CYW43_ARCH_THREADSAFE_BACKGROUND", 1),
372-
("CYW43_LWIP", 1),
372+
# This needs to be removed for DaynaPORT emulators
373+
# ("CYW43_LWIP", 1),
373374
("CYW43_PIO_CLOCK_DIV_DYNAMIC", 1),
374375
("LWIP_IPV4", 1),
375376
("LWIP_IGMP", 1),

0 commit comments

Comments
 (0)