Skip to content

Commit e16c459

Browse files
authored
Fix for cyw43_wrappers.h build with C code (earlephilhower#2639)
1 parent 33b0fd5 commit e16c459

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

cores/rp2040/cyw43_wrappers.h

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,15 @@
2323
#include <pico/cyw43_driver.h>
2424

2525
extern bool __isPicoW;
26+
#ifdef __cplusplus
2627
extern "C" {
27-
void init_cyw43_wifi();
28-
void __lockBluetooth();
29-
void __unlockBluetooth();
30-
void cyw43_pinMode(pin_size_t pin, PinMode mode);
31-
void cyw43_digitalWrite(pin_size_t pin, PinStatus val);
32-
PinStatus cyw43_digitalRead(pin_size_t pin);
28+
#endif
29+
void init_cyw43_wifi();
30+
void __lockBluetooth();
31+
void __unlockBluetooth();
32+
void cyw43_pinMode(pin_size_t pin, PinMode mode);
33+
void cyw43_digitalWrite(pin_size_t pin, PinStatus val);
34+
PinStatus cyw43_digitalRead(pin_size_t pin);
35+
#ifdef __cplusplus
3336
}
37+
#endif

0 commit comments

Comments
 (0)