2008-10-15 07:22:17     Using touchscreen AD7877 in microwindows

Document created by Aaronwu Employee on Aug 8, 2013
Version 1Show Document
  • View in full screen mode

2008-10-15 07:22:17     Using touchscreen AD7877 in microwindows

Maha lakshmi (INDIA)

Message: 63718   

 

Hi,

 

      I am using ADSP BF-548 EZKIT LITE REV 1.4. I have changed the IRQ to IRQ_PB4. It passed the event_test and I got this output

 

     root:/> event_test /dev/input/event1

Input driver version is 1.0.0

Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0

Input device name: "AD7877 Touchscreen"

Supported events:

  Event type 0 (Reset)

    Event code 0 (Reset)

    Event code 3 (Absolute)

  Event type 3 (Absolute)

    Event code 0 (X)

      Value   1982

      Min        0

      Max     4095

    Event code 1 (Y)

      Value   2072

      Min        0

      Max     4095

    Event code 24 (Pressure)

      Value      0

      Min        0

      Max     1000

Testing ... (interrupt to exit)

Event: time 1029.194881, type 3 (Absolute), code 0 (X), value 2816

Event: time 1029.194887, type 3 (Absolute), code 1 (Y), value 1784

Event: time 1029.194890, type 3 (Absolute), code 24 (Pressure), value 157

Event: time 1029.194892, type 0 (Reset), code 0 (Reset), value 0

Event: time 1029.237682, type 3 (Absolute), code 0 (X), value 2829

Event: time 1029.237688, type 3 (Absolute), code 1 (Y), value 1952

Event: time 1029.237690, type 3 (Absolute), code 24 (Pressure), value 725

Event: time 1029.237693, type 0 (Reset), code 0 (Reset), value 0

Event: time 1029.286683, type 3 (Absolute), code 24 (Pressure), value 0

Event: time 1029.286690, type 0 (Reset), code 0 (Reset), value 0

 

It also passed the tslib calibration test.

 

root:/> ts_calibrate

xres = 480, yres = 272

Took 2 samples...

Top left : X = 3572 Y = 3027

Took 3 samples...

Top right : X =  635 Y = 3118

Took 2 samples...

Bot right : X =  443 Y =  681

Took 2 samples...

Bot left : X = 3661 Y =  763

Took 1 samples...

Center : X = 2052 Y = 2018

489.791443 -0.123215 0.002906

276.186279 -0.000035 -0.072922

Calibration constants: 32098972 -8074 190 18100144 -2 -4779 65536

 

 

I'm trying to use AD7877 touch screen in microwindows. For that I have given all the options as given in the document http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:ad7877. I have manually modified  AD7877MOUSE = Y and NOMOUSE = N. When I launch the nano-X the got the output as

 

root:/> Error 2 opening AD7877 touchscreen device [/dev/ts0]

Cannot initialise mouse

 

as there is no device file(/dev/ts0).

 

Can you plz tell me to use touchscreen in microwindows??

 

Thanks,

 

Maha

 

 

 

 

 

 

 

 

 

 

 

 

 

QuoteReplyEditDelete

 

 

2008-10-16 22:41:34     Re: Using touchscreen AD7877 in microwindows

Yi Li (CHINA)

Message: 63819   

 

Please follow the document: http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:ad7877

 

If you would like to use /dev/ts0 interface, you need to configure kernel to enable "Touchscreens" interface, otherwise the device node /dev/ts0 will not be created.

 

  --- Generic input layer (needed for keyboard, mouse, ...)

  <*>   Touchscreen interface

  (240)   Horizontal screen resolution

  (320)   Vertical screen resolution

  <*>   Event interface

  < >   Event debugging

  ---   Input Device Drivers

  [*]   Keyboards  --->

  [ ]   Mice  --->

  [ ]   Joysticks/Gamepads  --->

  [ ]   Tablets  --->

  [*]   Touchscreens  --->

  [ ]   Miscellaneous devices  --->

      Hardware I/O ports  --->

Attachments

    Outcomes