I think the other example (hstx_spi_lcd https://github.com/raspberrypi/pico-exa ... _spi_lcd.c ) is a better point to start.
Extend the number of data bits (first to 2, then 4), remove the external clock signal, finally extend to 8 bits and you have it.
Bit registers contains multiple fields which must be defined
(not just hstx_ctrl_hw->bit[lane]=lane; )The same with CSR, N_SHIFTS and SHIFT.
Extend the number of data bits (first to 2, then 4), remove the external clock signal, finally extend to 8 bits and you have it.
Bit registers contains multiple fields which must be defined
(not just hstx_ctrl_hw->bit[lane]=lane; )
Code:
hstx_ctrl_hw->bit[PIN_DIN - FIRST_HSTX_PIN] = (7u << HSTX_CTRL_BIT0_SEL_P_LSB) | (7u << HSTX_CTRL_BIT0_SEL_N_LSB);Statistics: Posted by gmx — Sat Oct 05, 2024 5:39 am