summaryrefslogtreecommitdiff
path: root/extmod/modnetwork.c
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-06-30 14:48:47 +1000
committerDamien George <damien@micropython.org>2022-06-30 16:03:21 +1000
commit4f30c60dcbfabb86ae5711a69445c913a5652304 (patch)
tree088531a1fb2e06bab0c1259bcb128fabae48e95c /extmod/modnetwork.c
parent7dd818052e62a6fffeec3e566063c424dad6af25 (diff)
extmod/modnetwork: Include cyw43-driver header if it's enabled.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'extmod/modnetwork.c')
-rw-r--r--extmod/modnetwork.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/extmod/modnetwork.c b/extmod/modnetwork.c
index 87e155e09..e05bfdb11 100644
--- a/extmod/modnetwork.c
+++ b/extmod/modnetwork.c
@@ -44,6 +44,11 @@
#include "lwip/apps/mdns.h"
#endif
+#if MICROPY_PY_NETWORK_CYW43 && MICROPY_PY_NETWORK_CYW43_USE_LIB_DRIVER
+// So that CYW43_LINK_xxx constants are available to MICROPY_PORT_NETWORK_INTERFACES.
+#include "lib/cyw43-driver/src/cyw43.h"
+#endif
+
/// \module network - network configuration
///
/// This module provides network drivers and routing configuration.