@@ -56,28 +56,32 @@ if (EXISTS ${PICO_CYW43_DRIVER_PATH}/${CYW43_DRIVER_TEST_FILE})
56
56
hardware_exception
57
57
)
58
58
59
+ if (CYW43_PIN_WL_DYNAMIC )
60
+ # PICO_CMAKE_CONFIG: CYW43_PIN_WL_DYNAMIC, flag to indicate if cyw43 SPI pins can be changed at runtime, type=bool, group=pico_cyw43_driver
61
+ target_compile_definitions (cyw43_driver_picow INTERFACE CYW43_PIN_WL_DYNAMIC=${CYW43_PIN_WL_DYNAMIC} )
62
+ endif ()
59
63
if (CYW43_DEFAULT_PIN_WL_REG_ON )
60
- # PICO_CMAKE_CONFIG: CYW43_DEFAULT_PIN_WL_REG_ON, gpio pin to power up the cyw43 chip, type=int, default=23, group=pico_cyw43_driver
64
+ # PICO_CMAKE_CONFIG: CYW43_DEFAULT_PIN_WL_REG_ON, gpio pin to power up the cyw43 chip, type=int, group=pico_cyw43_driver
61
65
target_compile_definitions (cyw43_driver_picow INTERFACE CYW43_DEFAULT_PIN_WL_REG_ON=${CYW43_DEFAULT_PIN_WL_REG_ON} )
62
66
endif ()
63
67
if (CYW43_DEFAULT_PIN_WL_DATA_OUT )
64
- # PICO_CMAKE_CONFIG: CYW43_DEFAULT_PIN_WL_DATA_OUT, gpio pin for spi data out to the cyw43 chip, type=int, default=24, group=pico_cyw43_driver
68
+ # PICO_CMAKE_CONFIG: CYW43_DEFAULT_PIN_WL_DATA_OUT, gpio pin for spi data out to the cyw43 chip, type=int, group=pico_cyw43_driver
65
69
target_compile_definitions (cyw43_driver_picow INTERFACE CYW43_DEFAULT_PIN_WL_DATA_OUT=${CYW43_DEFAULT_PIN_WL_DATA_OUT} )
66
70
endif ()
67
71
if (CYW43_DEFAULT_PIN_WL_DATA_IN )
68
- # PICO_CMAKE_CONFIG: CYW43_DEFAULT_PIN_WL_DATA_IN, gpio pin for spi data in from the cyw43 chip, type=int, default=24, group=pico_cyw43_driver
72
+ # PICO_CMAKE_CONFIG: CYW43_DEFAULT_PIN_WL_DATA_IN, gpio pin for spi data in from the cyw43 chip, type=int, group=pico_cyw43_driver
69
73
target_compile_definitions (cyw43_driver_picow INTERFACE CYW43_DEFAULT_PIN_WL_DATA_IN=${CYW43_DEFAULT_PIN_WL_DATA_IN} )
70
74
endif ()
71
75
if (CYW43_DEFAULT_PIN_WL_HOST_WAKE )
72
- # PICO_CMAKE_CONFIG: CYW43_DEFAULT_PIN_WL_HOST_WAKE, gpio (irq) pin for the irq line from the cyw43 chip, type=int, default=24, group=pico_cyw43_driver
76
+ # PICO_CMAKE_CONFIG: CYW43_DEFAULT_PIN_WL_HOST_WAKE, gpio (irq) pin for the irq line from the cyw43 chip, type=int, group=pico_cyw43_driver
73
77
target_compile_definitions (cyw43_driver_picow INTERFACE CYW43_DEFAULT_PIN_WL_HOST_WAKE=${CYW43_DEFAULT_PIN_WL_HOST_WAKE} )
74
78
endif ()
75
79
if (CYW43_DEFAULT_PIN_WL_CLOCK )
76
- # PICO_CMAKE_CONFIG: CYW43_DEFAULT_PIN_WL_HOST_WAKE , gpio pin for the spi clock line to the cyw43 chip, type=int, default=29 , group=pico_cyw43_driver
80
+ # PICO_CMAKE_CONFIG: CYW43_DEFAULT_PIN_WL_CLOCK , gpio pin for the spi clock line to the cyw43 chip, type=int, group=pico_cyw43_driver
77
81
target_compile_definitions (cyw43_driver_picow INTERFACE CYW43_DEFAULT_PIN_WL_CLOCK=${CYW43_DEFAULT_PIN_WL_CLOCK} )
78
82
endif ()
79
83
if (CYW43_DEFAULT_PIN_WL_CS )
80
- # PICO_CMAKE_CONFIG: CYW43_DEFAULT_PIN_WL_CS, gpio pin for the spi chip select to the cyw43 chip, type=int, default=25, group=pico_cyw43_driver
84
+ # PICO_CMAKE_CONFIG: CYW43_DEFAULT_PIN_WL_CS, gpio pin for the spi chip select to the cyw43 chip, type=int, group=pico_cyw43_driver
81
85
target_compile_definitions (cyw43_driver_picow INTERFACE CYW43_DEFAULT_PIN_WL_CS=${CYW43_DEFAULT_PIN_WL_CS} )
82
86
endif ()
83
87
if (CYW43_PIO_CLOCK_DIV_INT )
@@ -89,7 +93,7 @@ if (EXISTS ${PICO_CYW43_DRIVER_PATH}/${CYW43_DRIVER_TEST_FILE})
89
93
target_compile_definitions (cyw43_driver_picow INTERFACE CYW43_PIO_CLOCK_DIV_FRAC8=${CYW43_PIO_CLOCK_DIV_FRAC8} )
90
94
endif ()
91
95
if (CYW43_PIO_CLOCK_DIV_DYNAMIC )
92
- # PICO_CMAKE_CONFIG: CYW43_PIO_CLOCK_DIV_DYNAMIC, flag used to enable dynamic pio clock divider API, type=bool, default=false , group=pico_cyw43_driver
96
+ # PICO_CMAKE_CONFIG: CYW43_PIO_CLOCK_DIV_DYNAMIC, flag used to enable dynamic pio clock divider API, type=bool, default=0 , group=pico_cyw43_driver
93
97
target_compile_definitions (cyw43_driver_picow INTERFACE CYW43_PIO_CLOCK_DIV_DYNAMIC=${CYW43_PIO_CLOCK_DIV_DYNAMIC} )
94
98
endif ()
95
99
0 commit comments