Page 13 of 18

Re: GDISP driver

Posted: Wed Aug 08, 2012 10:37 pm
by inmarket
I am just struggling on a merge with github at the moment. When the merge is done gdisp will have multi-threading, async multi-threading and a VMT driver.

At that point Tectu and I will restructure and bring halext up a level.

Once done, Tectu will work on adding touch and I will shift to audio (although I think I'll publish a font gen program first).

Re: GDISP driver

Posted: Wed Aug 08, 2012 11:20 pm
by Tectu
I am right now working on the touchpad drivers. It took me a few moments (yeah, very few :D) to get through the halext design. But once you understand it, it is very easy.
I created a new branch, which is also part of the remote repository (the one you all can see on github).

I also recommend each contributor, to use local branches for development. This makes merges muuuch easier and whenever you f*cked up something, you are able to get back in just one second.

@inmarket, I would like to have a proper font generator first as well. But whenever you need audio for some important project of yours, feel free to do that first.


~ Tectu

Re: GDISP driver

Posted: Thu Aug 09, 2012 6:55 am
by Tectu
Okay, I did port the two touchpad drivers, ADS7843 and XPT2046. They are working, but not finished yet. Abhishek did mention that he has some improvements, it will be bettern then ;-)

@inmarket: The driver would use lcdGetOrientation() (now gdispGetOrientation()) to find out in which orientation mode the screen is at the moment (portrait, landscape, portrait-inverted and lanscape inverted). This information is needed to return the coordinates to the relative screen zero poin.
It looks like gdispGetOrientation() isn't implemented yet. While having in mind to do that, I saw that gdispSetOrientation() isn't done yet as well. Are there any bigger problems implementing these? Could you do them as soon as you find some time?


~ Tectu

Re: GDISP driver

Posted: Thu Aug 09, 2012 8:56 am
by inmarket
Just sent pull request for updated code. Multi-thread, Async Multi-thread and a VMT driver.

With regard to gdispGetOrientation, it is included as a #define to a GDISP structure member. With the new code just pulled, gdispGetOrientation is obsolete and there is a new gdispQuery call to get all sorts of possible parameters including low level specific ones if defined by the driver. Orientation is however one of the standard ones although it may always return portrait for those drivers that don't support rotation.

Similiarly to set orientation there is a gdispControl routine. Again orientation is one of the standard ones. If it is not supported by the low level driver it will be quietly ignored. If your application relies on being able to change orientation (I can't think how) it is good to always check the result of the Control operation by doing a gdispQuery.

Congrats on the touchpad - halext is starting to come to reality :)
I will look later. As you mentioned, a font program is probably the next priority.

Re: GDISP driver

Posted: Thu Aug 09, 2012 9:06 am
by Badger
What's the plan with regards to the audio drivers and halext? I take it they would be developed in a separate repo? we could have an upstream halext repo that we can push all different halext projects to. I am working on a radio comms driver, it could be in halext form.

Re: GDISP driver

Posted: Thu Aug 09, 2012 9:19 am
by inmarket
Makes sense.

Re: GDISP driver

Posted: Thu Aug 09, 2012 9:23 am
by Abhishek
Tectu has created a repo called ChibiOS-halext. It should be pushed there. Currently there's just a readme.

EDIT: link: https://github.com/Tectu/ChibiOS-Halext

Re: GDISP driver

Posted: Thu Aug 09, 2012 9:28 am
by Badger
Ok, is it possible to retrospectively fork a repo? ie can we set the current LCD repo to be a github fork of the Chibios-halext repo without recreating it?

Re: GDISP driver

Posted: Thu Aug 09, 2012 9:35 am
by Tectu
I'll do the git magic.
Currently inmarket and Abhishek do both have full write access to the halext repo.


~ Tectu

Re: GDISP driver

Posted: Thu Aug 09, 2012 9:32 pm
by mobyfab
Tried to compile from the safepoint branch which is supposed to work. No luck, shit tons of errors. (unknown types, missing files...)

Basically it is broken since the halext has been merged.

This should really be cleaned, else I won't push the code. :|