[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [patch #6805] Numeric interrupt vectors
From: |
Anatoly Sokolov |
Subject: |
[avr-libc-dev] [patch #6805] Numeric interrupt vectors |
Date: |
Sun, 12 Apr 2009 14:10:52 +0000 |
User-agent: |
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; MRA 5.0 (build 02094); SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618) |
Follow-up Comment #1, patch #6805 (project avr-libc):
The patch for the GCC is not complete.
1. No numeric argument to the 'interrupt' attribute is implemented.
2. Not possible use one interrupt handler for some interrupt vectors.
I propose to implement the interface for interrupt handler functions as:
__attribute__ ((vectors(N1[, N2[, ...]]), [signal, interrupt, nmi, naked]))
void handler_mame (void);
The 'vectors' attribute specify interrupt vector numbers for handler
function.
The 'signal', 'interrupt', 'nmi' and 'naked' attributes specify type of
handler function. Need use only one. The default attribute is 'signal'.
Anatoly.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?6805>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/