[En-Nut-Discussion] New displays, chained devices, best way or how to

Ulrich Prinz uprinz2 at netscape.net
Wed Mar 4 23:08:08 CET 2009


Hi!

I'm almost new to nutos, almost as I used it mostly as it is before. But 
now I'd need to extend it in many ways and I am missing lots of how-to's 
or best ways.

New display types:
I am implementing a graphical display. I am trying to keep as close to 
the LCD structures as I can, but those code ist mostly character 
oriented. A graphical display, especially one without own fonts, is 
pixel oriented. The LCD code is attached to the term.c what would be 
great for the graphical display to. But there are some new commands 
needed to use all the features a graphical display features.
So, did already someone solve that and has some code where I can jump 
into? Or are there comments how to do that the best way?

Chaining Devices:
The displays I am trying to attach are SPI displays. So I need to 
register a new device for the SPI bus. Then I need to register a new 
stream device attached to the spi device from before. Is there an 
optimal way to do this? Actually I do the NutRegisterSPIDevice and then 
I do a NutRegisterDevice. But I think the registration of the display 
device itself should keep care for registering itself on the SPI bus in 
its init routines.

At all I really miss some guides of how to do some thing inside nutos 
the best way. Is there any further documentation available?

Sorry for beeing some more general, but I'd like to avoid posting long 
lines of code if there is already a solution at hands.

Ah, I develop these nutos drivers under linux but will backport them to 
the windows release for shure and share them to the community. But  I 
have massive problems getting the GUI going of the nutos configurator 
under linux. Any comments for that too?

Best regards and thanks in advance!

Ulrich



More information about the En-Nut-Discussion mailing list