interrupts



I have the following bit of code on an embedded platform, and I am trying to figure out what all these defines mean....

I am pretty sure they pertain to interrupt operations, but I have not worked with interrupts before so I am not sure of the particulars.

Each register contains 8 bits, one for each of 8 GPIO lines, so toggling one bit should enable/disable or do something else with interrupts for that GPIO line.

// No idea what type 1 and 2 do....  Something to do with edge and high?

#define GPIO_B_TYPE1 ((volatile uint32_t *)(gpio_ptr + 0x00AC))
#define GPIO_B_TYPE2 ((volatile uint32_t *)(gpio_ptr + 0x00B0))

//  end of interrupt?  How would this be used?

#define GPIO_B_EOI ((volatile uint32_t *)(gpio_ptr + 0x00B4))

// Interrupt enable?

#define GPIO_B_INTENB ((volatile uint32_t *)(gpio_ptr + 0x00B8))

// ????  No idea.

#define GPIO_B_INTSTS ((volatile uint32_t *)(gpio_ptr + 0x00BC))

I am open to guesses, comments, suggestions, or just plain humor....
.



Relevant Pages

  • Re: IST in C# application
    ... I already have a GPIO driver which exports the functions to define ... I do not want to handle the IRQ source identification in the ISR (to ... it is not a standard way to handle interrupts ...
    (microsoft.public.windowsce.platbuilder)
  • GPIO as a trigger on eZdsp f2812
    ... I am trying to use a GPIO pin as a trigger to switch the DSP operations. ... dsp such that it performs certain operations when pulse is 0 & other ... Initialize System Control: ... Clear all interrupts and initialize PIE vector table: ...
    (comp.dsp)
  • Re: [patch 2.6.31-rc7] gpiolib: allow poll() on value
    ... Many gpio chips allow to generate interrupts when the value of a pin ... This patch gives usermode application the opportunity to make ... changes the GPIO value (and the IRQ keeps triggering). ... Also note that this version only supports true GPIO interrupts. ...
    (Linux-Kernel)
  • Re: Interrupts in Microblaze
    ... I wanted to deal with interrupts in Microblaze project. ... Create a MicroBlaze + GPIO (w/ interrupts) design using BSB. ... Interrupt initialization and SelfTestIntC function. ...
    (comp.arch.fpga)
  • Re: Poor Samba throughput on 6.0 RC1
    ... > On my home box doing an xcopy to a share on a plain ... How many Interrupts is that generating on the realtek? ... I'm seeing 2127 interrupts on my fxp0 and I believe it to be too much. ...
    (freebsd-current)