From e16c459598b86ce67d8b83ac5b1384dcb8c982ae Mon Sep 17 00:00:00 2001 From: Linar Yusupov Date: Tue, 26 Nov 2024 11:48:34 +0300 Subject: [PATCH] Fix for cyw43_wrappers.h build with C code (#2639) --- cores/rp2040/cyw43_wrappers.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/cores/rp2040/cyw43_wrappers.h b/cores/rp2040/cyw43_wrappers.h index cdb1ec7dd..5a53569ee 100644 --- a/cores/rp2040/cyw43_wrappers.h +++ b/cores/rp2040/cyw43_wrappers.h @@ -23,11 +23,15 @@ #include extern bool __isPicoW; +#ifdef __cplusplus extern "C" { - void init_cyw43_wifi(); - void __lockBluetooth(); - void __unlockBluetooth(); - void cyw43_pinMode(pin_size_t pin, PinMode mode); - void cyw43_digitalWrite(pin_size_t pin, PinStatus val); - PinStatus cyw43_digitalRead(pin_size_t pin); +#endif +void init_cyw43_wifi(); +void __lockBluetooth(); +void __unlockBluetooth(); +void cyw43_pinMode(pin_size_t pin, PinMode mode); +void cyw43_digitalWrite(pin_size_t pin, PinStatus val); +PinStatus cyw43_digitalRead(pin_size_t pin); +#ifdef __cplusplus } +#endif