Hi,

I am using GPIO interrupts in my battery driver in this way:

      
// REGISTER INTERRUP __REG(DAVINCI_PINMUX0) &= ~(1<<26);  __REG(BINTEN) |= 1; 
// enable zero bank GPI0_0-GPIO_15 __REG(SET_RIS_TRIG01) |= 16;  //set GPIO4 to 
rising edge triger   __REG(SET_FAL_TRIG01) |= 8; //set GPIO3 to falling edge 
trigger __REG(SET_RIS_TRIG01) |= 8; //set GPIO3 to rising edge trigger

Regards,
Benjamin


Winston Ma <[EMAIL PROTECTED]> wrote: Hi All,

I am now having problem interfacing GPIO interrupt on DM6446.

When I tried to set GPIO0 rising edge interrupt. It's falling edge is activated 
as well. Therefore it's double counted. So I wonder what is the correct way to 
set an interrupt?

Here is my step
1. Set the BITEN to 1
2. Set the SET_RIS_TRIG to 1

By the way I did the the CLR_FALL_TRIG to 1 but it doesn't work as well.

Thanks for the help
          

---------------------------------
Yahoo! ºô¤W¦w¥þ§ð²¤¡A±Ð§A¦p¦ó¨¾½d¶Â«È! 
¤F¸Ñ§ó¦h_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to