nanogui: Touch panel can't run under microwindow?
Subject:
Touch panel can't run under microwindow?
From:
linuxhh ####@####.####
Date:
17 Jan 2001 02:48:08 -0000
Message-Id:
Hi, all
I am porting Microwindow on EDB7212. Now I have write a touchscreen driver for EDB7212.
When I write a sample code, I can read data from my touchscreen driver.
sample code:
int mouse_fd = fopen( "/dev/ts", "r" );
while( 1 )
{
fread( mouse_fd, &data, sizeof( data ) );
printf( "x=%d, y=%d\n", data.x, data.y );
}
Use those sample code, I can read correct data from my kernel driver.
Then I also write a Microwindow driver in /microwindow/src/driver/my-tp.c.
When I debug this driver with Microwindow demo application, I find that something
is wrong at those code:
In winmain.c:
timeout = 10; /* 10ms required for vt fb switch*/
if((e = select(setsize, &rfds, &wfds, &efds, &to)) > 0) {
..
..
else if(e == 0) {
..
} else
if(errno != EINTR)
EPRINTF("Select() call in main failed\n");
1. I have succeed to open touchscreen device.
2. Here I only select mouse_fd with rfds. I compile MW with NO_KBD.
But here only return "e==0", then application hung up.
Who can help me? Thanks.
Best regard.
linuxhh
####@####.####