[En-Nut-Discussion] node_cs definition in NUTSPINODE

Ulrich Prinz ulrich.prinz at googlemail.com
Wed Feb 22 17:26:08 CET 2012


> was not a good idea. In practice you will configure Nut/OS for a
> specific board once and never change it.

I fully agree :)
> Furthermore, Nut/OS doesn't currently allow to re-use a device. If you
> got 4 DataFlash chips, you'll need devSpiAt45d0 to devSpiAt45d3. Each
> SPI bus device has a fixed hardware chip select.
Right, there must be one ICB per used ChipSelect even the SPI bus
itself is reused.
>> In that light I propose
>> to make node_cs a 32 bits entitie.
> My proposal would be to remove the cs parameter and configure the chip
> select in the device driver.
I fully agree, as it is more convenient to do hardware-configuration
by qnutconf instead doing some here, some there, some...

> I'm open to arguments, of course.

Here you got mine :)


More information about the En-Nut-Discussion mailing list