patchAVR C Runtime Library - Patches: patch #6805, Numeric interrupt vectors

 
 

You are not allowed to post comments on this tracker with your current authentification level.

patch #6805: Numeric interrupt vectors

Submitted by:  Ron Kreymborg <ronkrem>
Submitted on:  Sun Apr 12 05:26:05 2009  
 
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: Anatoly Sokolov <aesok>Open/Closed: Open

Mon Apr 13 01:16:53 2009, comment #2:

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

Ron Kreymborg <ronkrem>
Sun Apr 12 14:10:51 2009, comment #1:

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.

Anatoly Sokolov <aesok>
Project AdministratorIn charge of this item.
Sun Apr 12 05:26:05 2009, original submission:

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));

Ron Kreymborg <ronkrem>

 

Attached Files
file #17905:  ClassInterrupts2.zip added by ronkrem (57kB - application/x-zip-compressed - Patches + doco + simple test)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by aesok (Posted a comment)
  • -unavailable- added by ronkrem (Submitted the item)
  • -unavailable- added by ronkrem
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Oct 11 20:39:21 2009aesokAssigned toNone=>aesok
    Sun Apr 12 05:26:05 2009ronkremAttached File-=>Added ClassInterrupts2.zip, #17905
      Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup