[avr-libc-dev] [patch #6805] Numeric interrupt vectors

2009-10-11 Thread Anatoly Sokolov

Update of patch #6805 (project avr-libc):

 Assigned to:None => aesok  


___

Reply to this item at:

  

___
  Message sent via/by Savannah
  http://savannah.nongnu.org/



___
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev


[avr-libc-dev] [patch #6805] Numeric interrupt vectors

2009-04-12 Thread Ron Kreymborg

Follow-up Comment #2, patch #6805 (project avr-libc):

Good idea - a more complete implementation that mine (which was based on
Marek's original). I assume it will use the number for the vector and not the
"handler_name" (the C++ requirement).

Just curious - what is an example of (2)?

Ron


___

Reply to this item at:

  

___
  Message sent via/by Savannah
  http://savannah.nongnu.org/



___
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev


[avr-libc-dev] [patch #6805] Numeric interrupt vectors

2009-04-12 Thread Anatoly Sokolov

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:

  

___
  Message sent via/by Savannah
  http://savannah.nongnu.org/



___
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev


[avr-libc-dev] [patch #6805] Numeric interrupt vectors

2009-04-11 Thread Ron Kreymborg

URL:
  

 Summary: Numeric interrupt vectors
 Project: AVR C Runtime Library
Submitted by: ronkrem
Submitted on: Sun 12 Apr 2009 05:26:05 AM GMT
Category: None
Priority: 5 - Normal
  Status: None
 Privacy: Public
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Discussion Lock: Any

___

Details:

This patch allows a C++ interrupt handler name to be represented by a number,
and while the name will be mangled as usual, the number survives for later
linking. The patch provides for an optional numeric argument to the signal
function. 

An interrupt function prototype using this system for the same USART0
receiver interrupt looks like:

void IntName(void) __attribute__ ((signal(18), __INTR_ATTRS));



___

File Attachments:


---
Date: Sun 12 Apr 2009 05:26:05 AM GMT  Name: ClassInterrupts2.zip  Size: 57kB
  By: ronkrem
Patches + doco + simple test


___

Reply to this item at:

  

___
  Message sent via/by Savannah
  http://savannah.nongnu.org/



___
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev