8000 extmod/modnetwork: Include cyw43-driver header if it's enabled. · DucRP/micropython@4f30c60 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4f30c60

Browse files
committed
extmod/modnetwork: Include cyw43-driver header if it's enabled.
Signed-off-by: Damien George <damien@micropython.org>
1 parent 7dd8180 commit 4f30c60

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

extmod/modnetwork.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@
4444
#include "lwip/apps/mdns.h"
4545
#endif
4646

47+
#if MICROPY_PY_NETWORK_CYW43 && MICROPY_PY_NETWORK_CYW43_USE_LIB_DRIVER
48+
// So that CYW43_LINK_xxx constants are available to MICROPY_PORT_NETWORK_INTERFACES.
49+
#include "lib/cyw43-driver/src/cyw43.h"
50+
#endif
51+
4752
/// \module network - network configuration
4853
///
4954
/// This module provides network drivers and routing configuration.

0 commit comments

Comments
 (0)
0