Could someone name the module of the interrupt handler running on the Gumstix that clears the interrupt and a way to deactivate it?
I would prefer it for some applications.
> I have a gumstix basix200 with audiostix2.
> I am trying to interface a micro switch to one of the gpio pins.
> For sensing whether the switch has been pressed, I have done the following:
> 1. configured GAFR to set normal gpio operation (ie: GAFR2 = 0x00000000)
> 2. configured the gpio as input via GPDR (ie: GPDR2 = 0x00000000)
> 3. enabled the GFER bit (ie: GFER2 = 0x00001000)
> Now when a transition occurs on the switch, GEDR (gpio event detection
> register does not show that a transition ie: it has 0x00000000)
> and GFER2 automatically changes to the disabled state (ie: 0x00000000)
Yeah - as Pascal suggested, setting GFER or GRER causes an interrupt
to fire and the interrupt handler clears the interrupt before your
code even gets a chance.
I suggest you consider using something like gpio-event:
which install the correct interrupt handlers to deal with the events.
Vancouver, BC, Canadahttp://www.DaveHylands.com/