Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Handling interrupts on IRQ1 line
PostPosted: Fri Apr 04, 2008 7:14 pm 
Offline

Joined: Sat Jun 30, 2007 1:18 am
Posts: 20
Location: Belgrade
Hi!

I have a problem handling interrupt - it always triggers twice, at the failling edge. I've connected to pin PC15 (irq1 line) external interrupt source - I can confirm that actual interrupt happens only once.

Code:
    __raw_writel(mask, pio + PIO_IER);
    __raw_writel(mask, pio + PIO_PUDR);
    __raw_writel(mask, pio + PIO_ODR);
    __raw_writel(mask, pio + PIO_IFDR);
    __raw_writel(mask, pio + PIO_PDR);


I've tried also to set SRCTYPE in appropriate AIC_SMR register, but no difference at all. Strange thing is that whenever I read AIC_SMR, I get 0. I'm using 2.6.20.21 kernel with at91 patch.

ps. AT91SAM9260 is my platform


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: