stm32/cyw43_configport: Fix build for boards without an RF switch.

Check if an RF switch is enabled before defining the RF switch pin.
This commit is contained in:
iabdalkader 2023-02-28 16:57:40 +01:00 committed by Damien George
parent 36ae5d3e87
commit 4937174b43
1 changed files with 4 additions and 1 deletions

View File

@ -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);