Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Interrupt function declaration

2006-05-10 by Andy

Hi all,

Just wondering if anyone can clear something up for me.
I'm using the Vectored Interrupt Controller as decribed below, just wondering what function delaration extention I should use and what the difference is?

Thanks,
Andy

// Vectored Interrupt - Using Timer 0
VICVectAddr0 = (tDWord)Interrupt_Function;
VICVectCntl0 = 0x20 | 4;
VICIntEnable |= 1<<4;

void Interrupt_Function (void) __attribute__((interrupt));
void Interrupt_Function (void) __attribute__((interrupt ("IRQ")));
void Interrupt_Function (void) __attribute__((interrupt ("FIQ")));
void Interrupt_Function (void) __irq; 


[Non-text portions of this message have been removed]

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.