extmod/modnetwork: Include cyw43-driver header if it's enabled.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2022-06-30 14:48:47 +10:00
parent 7dd818052e
commit 4f30c60dcb
1 changed files with 5 additions and 0 deletions

View File

@ -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.