diff options
| -rw-r--r-- | ports/stm32/cyw43_configport.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ports/stm32/cyw43_configport.h b/ports/stm32/cyw43_configport.h index 666dfc43e..9ad932509 100644 --- a/ports/stm32/cyw43_configport.h +++ b/ports/stm32/cyw43_configport.h @@ -85,9 +85,12 @@ #define CYW43_PIN_WL_REG_ON pyb_pin_WL_REG_ON #define CYW43_PIN_WL_HOST_WAKE pyb_pin_WL_HOST_WAKE -#define CYW43_PIN_WL_RFSW_VDD pyb_pin_WL_RFSW_VDD #define CYW43_PIN_WL_SDIO_1 pyb_pin_WL_SDIO_1 +#if MICROPY_HW_ENABLE_RF_SWITCH +#define CYW43_PIN_WL_RFSW_VDD pyb_pin_WL_RFSW_VDD +#endif + #define cyw43_schedule_internal_poll_dispatch(func) pendsv_schedule_dispatch(PENDSV_DISPATCH_CYW43, func) void cyw43_post_poll_hook(void); |
