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  [ 4 posts ] 
Author Message
 Post subject: how to register irq handler for gpio push button.
PostPosted: Tue Apr 15, 2008 2:42 pm 
Offline

Joined: Sat Mar 15, 2008 11:12 am
Posts: 22
Location: Hyderabad
hi everyone...

using char driver i could able to access gpio push buttons in at91sam9261-ek.but i have to use irq for and register a handler for accessing the keys.my question is how can i assign irq number and all other stuff to gpio pin?help me out....and thnx in advance...

regards,
kiran kumar sharma.


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

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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 22, 2008 8:34 am 
Offline

Joined: Mon Dec 10, 2007 5:26 pm
Posts: 30
Can you share what you did?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 22, 2008 1:32 pm 
Offline

Joined: Sat Mar 15, 2008 11:12 am
Posts: 22
Location: Hyderabad
hi swinnenb,

In the BSP(from timesys),they have exported some functions(refer gpio.c) to access the status of the GPIO's.so i wrote a dummy char driver with a dummy device class,with which i have accessed the already exported kernel functions(i have statically linked the driver module with the kernel).In irq handler am just checking whether status of GPIO corresponding to the key is changed or not?if so,am registering a process context bottom-half(work-queue) for handling key press and release events(for handling the key debounce delay).....hope u got it...

regards,
kiran kumar sharma.


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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: