I am trying to write the wrapper class for PIC24FJ256GB210 controller using the MPLAB C30 compiler v3.25 . An outline of the assembly code wrapper is as below
#include <p24FJ256GB210.h> #include <sys/asm.h> #include "ISR_Support.h" .set nomips16 .set noreorder .extern vUART_ISR_Handler .extern xISRStackTop .global _U1TXInterrupt .set noreorder .set noat .ent _U1TXInterrupt _U1TXInterrupt: portSAVE_CONTEXT jal vUART_ISR_Handler nop portRESTORE_CONTEXT .end _U1TXInterrupt
The included file “sys/asm.h” is a C32 file . I need to know which file needs to be included for the C30 compiler and also the best method to handle interrupts.