[patch #6805] Numeric interrupt vectors

View: New views
4 Messages — Rating Filter:   Alert me  

[patch #6805] Numeric interrupt vectors

by Sylvain Beucler-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


URL:
  <http://savannah.nongnu.org/patch/?6805>

                 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
<http://savannah.nongnu.org/patch/download.php?file_id=17905>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6805>

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



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

[patch #6805] Numeric interrupt vectors

by Sylvain Beucler-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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/



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

[patch #6805] Numeric interrupt vectors

by Sylvain Beucler-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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:

  <http://savannah.nongnu.org/patch/?6805>

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



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

[patch #6805] Numeric interrupt vectors

by Sylvain Beucler-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

             Assigned to:                    None => aesok                  


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6805>

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



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