Closed juan0fran closed 1 month ago
there is not the option to change polarity/phase unless the library code is modified.
Can't you simply call spi_set_format
after calling the existing spi_init
?
Actually yes, but that would require to define spi_set_format
as non-static. Either way would work.
spi_set_format is inline, you should be able to call it
closing as you can indeed call spi_set_format
; please re-open if this causes other issues
On
spi.c
[https://github.com/raspberrypi/pico-sdk/blob/2062372d203b372849d573f252cf7c6dc2800c0a/src/rp2_common/hardware_spi/spi.c#L21C6-L21C14]there is not the option to change polarity/phase unless the library code is modified.
A spi-specific function should be added (to have retro-compatibility for those libs already using this library) to something like: