|
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.
|