Page 7 of 18

Re: GDISP driver

Posted: Thu Aug 02, 2012 12:28 pm
by Abhishek
The problem lies in the ways structures are packed. I will have to do some modifications.

Re: GDISP driver

Posted: Thu Aug 02, 2012 12:45 pm
by Abhishek
One thing that has been done is that inmarket's code relies on the fact that the structures are linked sequentially, unfortunately, it's happening that the code's messed up. It'll require reworking of the font structure. I'll give it a try, but ultimately, inmarket, sorry, you will have to tweak your code.

Re: GDISP driver

Posted: Thu Aug 02, 2012 1:13 pm
by Abhishek
I'm close, but not too much. It's coming but still dirty. I'm going away for a few hrs, after I come back I'll check

Re: GDISP driver

Posted: Thu Aug 02, 2012 1:16 pm
by Tectu
Can you please keep things in a single post? This way we keep the forum clean.
Thank you :)


~ Tectu

Re: GDISP driver

Posted: Thu Aug 02, 2012 2:38 pm
by Abhishek
I did some restructuring in the font structure, currently targeting just 1 font. When I get it working, I'll post it here / submit a patch.

I'll be editing this post for updates.

EDIT 19:18 +530: Going away again now, should be back in ~ 2hrs

Re: GDISP driver

Posted: Thu Aug 02, 2012 2:51 pm
by inmarket
Not unexpected that the fonts are broken. It was almost a complete rewrite.
I am glad that at least the other operations are working.
I have just got my own screen driver operational for rectangular fills so I will now switch focus and get the fonts sorted out.
Thinking about it - It could be the sub-structure tables are being optimised out by the compiler as they are not referenced directly. I will investigate.
For the other drivers - can someone submit any changes needed to make these operational.

Re: GDISP driver

Posted: Thu Aug 02, 2012 2:54 pm
by Abhishek
BINGO!!!!

Just Before leaving, saw that there was one small change. When I did it, works like a charm.

I'll give the details once I'm back.

Re: GDISP driver

Posted: Thu Aug 02, 2012 3:00 pm
by Abhishek
I'm making a lot of posts again, sorry ;)

Indeed inmarket, the problem is related to sub-structures. A small change is required to get it running. especially removin that SC stuff from the table, and referencing all tables from inside the main font table.

I left a c - f->min somewhere while changing, causing the problem. Now, its fine. Don't worry inmarket, you've done excellent work! :) I'll get back soon with my changes

Re: GDISP driver

Posted: Thu Aug 02, 2012 3:03 pm
by Tectu
Sounds good, waiting for pull requests :)


~ Tectu

Re: GDISP driver

Posted: Thu Aug 02, 2012 4:53 pm
by inmarket
Tectu wrote:

Code: Select all

Compiling /home/tectu/projects/resources/chibios/ext/lcd/drivers/lcd/ssd1289_lld.c


It looks like your still compiling and linking the GLCD code in (perhaps as well as the GDISP). Try removing GLCD from the make chain and just using GDISP and it should work.