Skip to content

Commit

Permalink
Fix for cyw43_wrappers.h build with C code (#2639)
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov authored Nov 26, 2024
1 parent 33b0fd5 commit e16c459
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions cores/rp2040/cyw43_wrappers.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@
#include <pico/cyw43_driver.h>

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

0 comments on commit e16c459

Please sign in to comment.