patacongo edited a comment on pull request #1851:
URL: https://github.com/apache/incubator-nuttx/pull/1851#issuecomment-695789513


   > 
   > 
   > @patacongo I was digging into the nxterm code, to see if I could easily 
use it for testing, but I did not see a way to point it at a keyboard device 
directly. Is it expected that I create a thread that polls on /dev/kbda and 
then calls `NXTERMIOC_NXTERM_KBDIN` via `BOARDIOC_NXTERM_IOCTL`?
   
   Yes, that is how it currently works.  Some of that logic is very old; some 
aspects of the design might benefit from some re-design.
   
   Note that that thread could like in your featherwing driver logic.  There is 
a function in nxterm_driver.c called nxterm_ioctl_tap() that permits the nxterm 
ioctl commands to be called from within the OS.  You might even be able to come 
up with a solution that does not require a dedicated "listener" thread.  
Perhaps keyboard input could be handled on the work queue and 
nxterm_ioctl_tap() could be called directly.  This makes sense because the 
featherwing is really an integrated solution, is it not?
   
   There used to be graphics that showed the threading models for NxWM and for 
Twm4Nx.  There is still a link here for NxWM:  
https://cwiki.apache.org/confluence/display/NUTTX/Graphics,  but it is broken.
   
   
   
   
   
   
   
   
   
   
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to