TNeo  v1.08
Macros
tn_arch_pic24.h File Reference

Detailed Description

PIC24/dsPIC architecture-dependent routines.

Definition in file tn_arch_pic24.h.

Go to the source code of this file.

Macros

#define tn_p24_soft_isr(_func, _psv)   _tn_soft_isr_internal(_func, _psv, )
 ISR wrapper macro for software context saving. More...
 

Macro Definition Documentation

◆ tn_p24_soft_isr

#define tn_p24_soft_isr (   _func,
  _psv 
)    _tn_soft_isr_internal(_func, _psv, )

ISR wrapper macro for software context saving.

Usage looks like the following:

tn_p24_soft_isr(_T1Interrupt, auto_psv)
{
//-- clear interrupt flag
IFS0bits.T1IF = 0;
//-- do something useful
}

Which should be used for system interrupts, instead of standard way:

void __attribute__((__interrupt__, auto_psv)) _T1Interrupt(void)

Where _T1Interrupt is the usual PIC24/dsPIC ISR name, and auto_psv (or no_auto_psv) is the usual attribute argument for interrupt.

Definition at line 484 of file tn_arch_pic24.h.