Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: How to Access user i/p push buttons in AT91SAM9261-EK
PostPosted: Sat Mar 15, 2008 11:20 am 
Offline

Joined: Sat Mar 15, 2008 11:12 am
Posts: 22
Location: Hyderabad
Hi everyone...
am new to ARM and LINUX.We are developing a product based on at91sam9261.
right am working on at91sam9261-ek ,in which i am planning to access available 4 user i/p push buttons.i'll be very happy if any one suggest me the steps to be followed for the same...

cheers
Kiran Kumar.


Last edited by kirankumar28 on Tue Apr 15, 2008 1:51 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 15, 2008 1:39 pm 
Offline

Joined: Sat Mar 15, 2008 11:12 am
Posts: 22
Location: Hyderabad
i mean are there any standard routines available to know which push button is pressed


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 17, 2008 7:34 pm 
Offline

Joined: Thu Aug 09, 2007 10:48 am
Posts: 106
Location: Artec Design LLC, Tallinn, Estonia
You need gpio_keys driver in kernel. Then you can use an event device interface to get the button press and release events. The evdev interface is the same as for the touchscreen etc.
Keyboard gpio-keycode mapping has to be done in your board source file (in kernel tree arch/arm/mach-at91/yourboard.c)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 19, 2008 1:13 pm 
Offline

Joined: Sat Mar 15, 2008 11:12 am
Posts: 22
Location: Hyderabad
hey thnx...AntiSullin...i'll do that...

regards,
kiran kumar


Top
 Profile  
 
 Post subject: How to write key event interface for sam9261-ek
PostPosted: Tue Apr 15, 2008 1:44 pm 
Offline

Joined: Sat Mar 15, 2008 11:12 am
Posts: 22
Location: Hyderabad
i have written the at91_gpio driver and also i could able to access the keys.but how to write key press and release event interface.i am confused a bit.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 22, 2008 6:07 am 
Offline

Joined: Sat Mar 15, 2008 11:12 am
Posts: 22
Location: Hyderabad
I have done it...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 09, 2008 8:01 am 
Offline

Joined: Mon Apr 07, 2008 3:47 pm
Posts: 2
Hi, linux-2.6.24/arch/arm/mach-at91/gpio.c is the driver.How to use this deiver?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: