Re: TR: interfacing FPGA to AT91RM9200

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


> Pls check below.
>
> Kind regards,
> Andrejs Cainikovs
>
>
> Aras Vaichas wrote:
>> [snip]
>>
>> (*) IRQs
>>     // initialise the IRQ pin hardware
>>     at91_set_gpio_input( reader_irq, 1);
>>     at91_set_deglitch( reader_irq, 1);
>>     at91_set_A_periph( reader_irq, 1);
>>
> I thought irq pin was the input, not peripheral?

Not sure what you mean? Are you asking why I've declared the GPIO pin as a
peripheral, and not as a GPIO interrupt source?

reader_irq is PB29 which is IRQ0 which is Peripheral A, so I might as well
let it have its own interrupt which isn't shared.

Does that make sense, or have I made a mistake somewhere?

The device driver works fine and has been working for a few years like that.

Aras


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php

[Linux ARM]     [Linux ARM MSM]     [Linux ARM Kernel]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

Add to Google Follow linuxarm on Twitter