8000 stm32/cyw43_configport: Fix build for boards without an RF switch. · micropython/micropython@4937174 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4937174

Browse files
iabdalkaderdpgeorge
authored andcommitted
stm32/cyw43_configport: Fix build for boards without an RF switch.
Check if an RF switch is enabled before defining the RF switch pin.
1 parent 36ae5d3 commit 4937174

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ports/stm32/cyw43_configport.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,12 @@
8585

8686
#define CYW43_PIN_WL_REG_ON pyb_pin_WL_REG_ON
8787
#define CYW43_PIN_WL_HOST_WAKE pyb_pin_WL_HOST_WAKE
88-
#define CYW43_PIN_WL_RFSW_VDD pyb_pin_WL_RFSW_VDD
8988
#define CYW43_PIN_WL_SDIO_1 pyb_pin_WL_SDIO_1
9089

90+
#if MICROPY_HW_ENABLE_RF_SWITCH
91+
#define CYW43_PIN_WL_RFSW_VDD pyb_pin_WL_RFSW_VDD
92+
#endif
93+
9194
#define cyw43_schedule_internal_poll_dispatch(func) pendsv_schedule_dispatch(PENDSV_DISPATCH_CYW43, func)
9295

9396
void cyw43_post_poll_hook(void);

0 commit comments

Comments
 (0)
0