On Thu, Sep 15, 2022 at 09:48:42AM -0300, Alan Carvalho de Assis wrote:
> Actually you can include support for multiple devices of same type in
> the same SPI bus:
>
> #if defined(LCDxyz) || defined(LCDwku) ...
> switch (devid)
> {
> case SPIDEV_DISPLAY(0):
> /* Set the GPIO low to select and high to de-select */
>
> rp2040_gpio_put(BOARD_RP2040_SPI0_DISPLAY_CS0, !selected);
> break;
Ok - I see where this is going.
But is it really reasonable to add such a whole bunch of generic code?
I'm used to add it in my own board code, if I have additional devices.
--
B.Walter <[email protected]> https://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.