summaryrefslogtreecommitdiff
path: root/examples/device
diff options
context:
space:
mode:
authorgraham sanderson <[email protected]>2022-05-20 17:25:30 -0500
committergraham sanderson <[email protected]>2022-05-20 17:25:30 -0500
commit26c4d4b328ca93d0db5d8d7842a315cbde4d9f5a (patch)
tree89b5b073cfeb72f24c3bc115667c0a0d2b4f63f1 /examples/device
parentc2bcda86e2de35cc01628f4e909e2a7869a7322b (diff)
Minor cleanup of RP2040 code post addition of Pico-PIO_USB
* Removed some compiler warnings, and cleaned out unnecessary warning suppression from CMake suppress_tinyusb_warnings() * Made explicit family_configure_dual_usb_example() for DUAL mode examples as family_configure_target() may not generally be called multiple times for the same target * Renamed library pico_pio_usb to tinyusb_picio_pio_usb to be clearer and avoid conflict if someone already has a pico_pio_usb in their project * Added family_add_pico_pio_usb() method for adding Pico-PIO_SUB support to an existing example * Allowed tinyusb_pico_pio_usb to be added to regular apps using the Pico SDK
Diffstat (limited to 'examples/device')
-rw-r--r--examples/device/net_lwip_webserver/src/lwipopts.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/device/net_lwip_webserver/src/lwipopts.h b/examples/device/net_lwip_webserver/src/lwipopts.h
index a215017c7..639619f63 100644
--- a/examples/device/net_lwip_webserver/src/lwipopts.h
+++ b/examples/device/net_lwip_webserver/src/lwipopts.h
@@ -49,7 +49,9 @@
#define TCP_MSS (1500 /*mtu*/ - 20 /*iphdr*/ - 20 /*tcphhr*/)
#define TCP_SND_BUF (2 * TCP_MSS)
+#ifndef TCP_WND
#define TCP_WND (TCP_MSS)
+#endif
#define ETHARP_SUPPORT_STATIC_ENTRIES 1