Latest nutos missing a configuration topic?

View: New views
2 Messages — Rating Filter:   Alert me  

Latest nutos missing a configuration topic?

by uprinz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!

I updated my dev tree to the latest trunk version of nutos. I found some interesting work has been done and so I started to port my device drivers to this new system.
Great idea to use the configurator to select which CS is used by what chip on an SPI bus and if its CS is high or low active.
But... I miss the option to select the SPI bus itself...

Background:
I ported the 7segspi device that I use for the display in a thermal controller unit. It is a AS1108 that interfaces a 3 digit 7 segment LED display to the SPI bus.

While inspecting the needed changes to my code I stumbled upon the fact, that all SPI connected devices miss an option to select the bus where they are connected to.

I miss another thing, that is you cannot select the AT24C EEPROM for beeing a config memory to the system. But as I (re)wrote most of that code, I think I have to fix that myself :)

Best regards and a nice weekend
Ulrich
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion

Re: Latest nutos missing a configuration topic?

by uprinz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Fri, 03 Jul 2009 10:36:13 -0400, uprinz2@... wrote:
> Hi!
>  
> I updated my dev tree to the latest trunk version of nutos. I found some
> interesting work has been done and so I started to port my device drivers
> to this new system.
> Great idea to use the configurator to select which CS is used by what
chip
> on an SPI bus and if its CS is high or low active.
> But... I miss the option to select the SPI bus itself...  
>  
Ok, let's have a litte self talk...
 
Where spi-devices are connected on a special hardware is highly hardware
dependand. So it does make sense to not define interconnections between cpu
und periphal directly. If you use an example application then there should
be a call  
NutRegisterSpiDevice(NUTDEVICE * dev, NUTSPIBUS * bus, int cs);
that connects the hardware.
 
So I'll modify my contributed examples for 7-Segment LED driver and others
accordingly.
 
> Ulrich
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion