From 4f30c60dcbfabb86ae5711a69445c913a5652304 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 30 Jun 2022 14:48:47 +1000 Subject: [PATCH] extmod/modnetwork: Include cyw43-driver header if it's enabled. Signed-off-by: Damien George --- extmod/modnetwork.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extmod/modnetwork.c b/extmod/modnetwork.c index 87e155e091..e05bfdb11d 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.