Skip to content

Commit 07e21b2

Browse files
authored
fix for cyw43_wrappers.h build with C code
1 parent 7add625 commit 07e21b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cores/rp2040/cyw43_wrappers.h

Lines changed: 4 additions & 0 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" {
28+
#endif
2729
void init_cyw43_wifi();
2830
void __lockBluetooth();
2931
void __unlockBluetooth();
3032
void cyw43_pinMode(pin_size_t pin, PinMode mode);
3133
void cyw43_digitalWrite(pin_size_t pin, PinStatus val);
3234
PinStatus cyw43_digitalRead(pin_size_t pin);
35+
#ifdef __cplusplus
3336
}
37+
#endif

0 commit comments

Comments
 (0)