07-02-2023, 02:39 AM
(This post was last modified: 07-02-2023, 03:06 AM by WhiteHexagon.)
@lupyuen
Thanks! Looks like you are also having fun
well done! and a fun read.
My last assembly was 68000 era and I really fancy having a play with RISC-V at some point. But I am waiting for the dust to settle with the new product roll-outs here. I dont read outside of the forum, but it has gone strangely quiet. Did you get the PineTabV as well to test? I think that is what I'll eventually order.
Anyway I have plenty to keep me busy with the PP!
I spent the day going through a lot of your display panel code, looking at GIC, and trying to track down the 'xcpt_t' definition, and 'irq_attach' (still not found them). I am tempted to try and delete anything non PP based from nuttx to help my struggling old MBP/manjaro install trying to run slow electron app... and I miss an IDE with 'goto definition' type functionality.
Anyway I got a bit distracted looking at the way you got the touch panel working, nice
but it tricked me at first thinking PIO was interrupt related hehe. And the concept of file based devices was a surprise for me, although I know unix/linux takes this approach, I have never seen driver code before, so inode priv counter guards was a fun exploration. I think my first steps will be a bit more hacky until I understand the concepts better ![Smile Smile](https://forum.pine64.org/images/smilies/smile.png)
PS okay so my misunderstanding, so as you mention below, PIO does in fact generate A64 interrupt, in response to the panel touch interrupt signalling on the PIO pin. phew, step-by-step![Smile Smile](https://forum.pine64.org/images/smilies/smile.png)
https://lupyuen.github.io/articles/touch...pt-handler
Thanks! Looks like you are also having fun
![Smile Smile](https://forum.pine64.org/images/smilies/smile.png)
My last assembly was 68000 era and I really fancy having a play with RISC-V at some point. But I am waiting for the dust to settle with the new product roll-outs here. I dont read outside of the forum, but it has gone strangely quiet. Did you get the PineTabV as well to test? I think that is what I'll eventually order.
Anyway I have plenty to keep me busy with the PP!
![Smile Smile](https://forum.pine64.org/images/smilies/smile.png)
Anyway I got a bit distracted looking at the way you got the touch panel working, nice
![Smile Smile](https://forum.pine64.org/images/smilies/smile.png)
![Smile Smile](https://forum.pine64.org/images/smilies/smile.png)
PS okay so my misunderstanding, so as you mention below, PIO does in fact generate A64 interrupt, in response to the panel touch interrupt signalling on the PIO pin. phew, step-by-step
![Smile Smile](https://forum.pine64.org/images/smilies/smile.png)
https://lupyuen.github.io/articles/touch...pt-handler