Micropython and C SDK currently include code for Motorola format only (which is mode 0, the default value). You would probably have to access the control register directly to reconfigure it after the provided initialization:
https://github.com/raspberrypi/pico-sdk/blob/2.0.0/src/rp2_common/hardware_spi/include/hardware/spi.h#L255
https://github.com/micropython/micropython/blob/v1.23.0/ports/rp2/machine_spi.c#L191
Maybe they could repurpose the order parameter (currently unused, i.e. constant value 1, or possibly 0) for some format/mode/order enum…
https://github.com/raspberrypi/pico-sdk/blob/2.0.0/src/rp2_common/hardware_spi/include/hardware/spi.h#L255
https://github.com/micropython/micropython/blob/v1.23.0/ports/rp2/machine_spi.c#L191
Maybe they could repurpose the order parameter (currently unused, i.e. constant value 1, or possibly 0) for some format/mode/order enum…
Statistics: Posted by PicoTinker — Fri Oct 11, 2024 1:43 am