Skip to content

Commit 5490b1a

Browse files
committed
Allow LwIP to be disabled by default
The cyw43-driver enables LwIP if CYW43_LWIP is not defined. Allow LwIP to be disabled by default if CYW43_LWIP is not defined so we can use the driver to access the led without needing to link to LwIP. Add CYW43_LWIP_DEFAULT to enable this.
1 parent 95e7529 commit 5490b1a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/rp2_common/pico_cyw43_driver/include/cyw43_configport.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,11 @@ void cyw43_post_poll_hook(void);
198198
#define cyw43_free free
199199
#endif
200200

201+
// PICO_CONFIG: CYW43_LWIP_DEFAULT, The cyw43-driver uses LwIP by default, you can define CYW43_LWIP_DEFAULT=0 to disable LwIP by default, type=bool, group=pico_cyw43_driver
202+
#if !defined CYW43_LWIP && defined CYW43_LWIP_DEFAULT
203+
#define CYW43_LWIP CYW43_LWIP_DEFAULT
204+
#endif
205+
201206
#ifdef __cplusplus
202207
}
203208
#endif

0 commit comments

Comments
 (0)