/**
  @Generated 16-bit Bootloader Source File

  @Company:
    Microchip Technology Inc.

  @File Name: 
    interrupts.S

  @Summary:
    This is the interrupts.S file generated using 16-bit Bootloader

  @Description:
    This header file provides implementations for driver APIs for all modules selected in the GUI.
    Generation Information :
        Product Revision  :  16-bit Bootloader - 1.17.3
        Device            :  PIC24FJ1024GA606
    The generated drivers are tested against the following:
        Compiler          :  XC16 v1.36B
        MPLAB             :  MPLAB X v5.15
*/
/*
Copyright (c) [2012-2019] Microchip Technology Inc.  

    All rights reserved.

    You are permitted to use the accompanying software and its derivatives 
    with Microchip products. See the Microchip license agreement accompanying 
    this software, if any, for additional info regarding your rights and 
    obligations.
    
    MICROCHIP SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT 
    WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT 
    LIMITATION, ANY WARRANTY OF MERCHANTABILITY, TITLE, NON-INFRINGEMENT 
    AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL MICROCHIP OR ITS
    LICENSORS BE LIABLE OR OBLIGATED UNDER CONTRACT, NEGLIGENCE, STRICT 
    LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR OTHER LEGAL EQUITABLE 
    THEORY FOR ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES INCLUDING BUT NOT 
    LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES, 
    OR OTHER SIMILAR COSTS. 
    
    To the fullest extend allowed by law, Microchip and its licensors 
    liability will not exceed the amount of fees, if any, that you paid 
    directly to Microchip to use this software. 
    
    THIRD PARTY SOFTWARE:  Notwithstanding anything to the contrary, any 
    third party software accompanying this software is subject to the terms 
    and conditions of the third party's license agreement.  To the extent 
    required by third party licenses covering such third party software, 
    the terms of such license will apply in lieu of the terms provided in 
    this notice or applicable license.  To the extent the terms of such 
    third party licenses prohibit any of the restrictions described here, 
    such restrictions will not apply to such third party software.
*/
/* This file lists all of the interrupts in the system and how they will be
 * handled.  This file is use by both the hardware interrupt table and the 
 * user remap table to make sure they both stay in sync.
 *
 * IMPORTANT NOTE: Once a boot loader is deployed using this file, this file 
 * can not be modified in the end application.  Take care when selecting how to 
 * handle each interrupt at the development of the boot loader.
 *
 * Options:
 *   remap_to_application - this forwards the interrupt directly to the
 *   user application.  Each interrupt forwarded will require 2 instructions
 *   for the GOTO in the user reamapping table thus taking up 6 bytes of program
 *   memory each.  This is the safest option for all interrupts implemented in 
 *   hardware.  
 *
 *   keep_in_bootloader - this option will keep the interrupt in the boot
 *   loader.  If the interrupt function is defined, it will just to that
 *   function.  If it is not defined, it will jump to the default interrupt 
 *   handler function.
 *
 *   remap_to_application_default - this forwards the interrupt directly to the
 *   user application's default interrupt handler rather than the specified 
 *   unique interrupt vector.  This option is useful for interrupts that the
 *   application does not expect to use.  Since each interrupt forwarded by the
 *   remap_to_application option takes 2 instruction words, can get quite costly
 *   to forward all possible interrupts.  Interrupts forwarded with this option
 *   do not take any additional code space to forward.  Since multiple
 *   interrupts will be forwarded to the same vector, the user code will have to
 *   check to see which interrupt triggered to process them accordingly.  
 */
    
#ifdef REMAP_TABLE    

REMAP_TO_APPLICATION   OscillatorFail       
REMAP_TO_APPLICATION   AddressError       
KEEP_IN_BOOTLOADER   NVMError       
REMAP_TO_APPLICATION   StackError       
REMAP_TO_APPLICATION   MathError       
REMAP_TO_APPLICATION_DEFAULT   ReservedTrap5       
REMAP_TO_APPLICATION   GeneralError       
REMAP_TO_APPLICATION_DEFAULT   ReservedTrap7       
REMAP_TO_APPLICATION   INT0Interrupt       
REMAP_TO_APPLICATION_DEFAULT   IC1Interrupt       
REMAP_TO_APPLICATION_DEFAULT   OC1Interrupt       
REMAP_TO_APPLICATION   T1Interrupt       
REMAP_TO_APPLICATION_DEFAULT   DMA0Interrupt       
REMAP_TO_APPLICATION_DEFAULT   IC2Interrupt       
REMAP_TO_APPLICATION_DEFAULT   OC2Interrupt       
REMAP_TO_APPLICATION   T2Interrupt       
REMAP_TO_APPLICATION_DEFAULT   T3Interrupt       
REMAP_TO_APPLICATION_DEFAULT   SPI1Interrupt       
REMAP_TO_APPLICATION_DEFAULT   SPI1TXInterrupt       
REMAP_TO_APPLICATION   U1RXInterrupt       
REMAP_TO_APPLICATION   U1TXInterrupt       
REMAP_TO_APPLICATION_DEFAULT   ADC1Interrupt       
REMAP_TO_APPLICATION_DEFAULT   DMA1Interrupt       
KEEP_IN_BOOTLOADER   NVMInterrupt       
REMAP_TO_APPLICATION_DEFAULT   SI2C1Interrupt       
REMAP_TO_APPLICATION_DEFAULT   MI2C1Interrupt       
REMAP_TO_APPLICATION_DEFAULT   CompInterrupt       
REMAP_TO_APPLICATION_DEFAULT   IOCInterrupt       
REMAP_TO_APPLICATION_DEFAULT   INT1Interrupt       
REMAP_TO_APPLICATION_DEFAULT   Interrupt21       
REMAP_TO_APPLICATION_DEFAULT   CCP5Interrupt       
REMAP_TO_APPLICATION_DEFAULT   CCP6Interrupt       
REMAP_TO_APPLICATION_DEFAULT   DMA2Interrupt       
REMAP_TO_APPLICATION_DEFAULT   OC3Interrupt       
REMAP_TO_APPLICATION_DEFAULT   OC4Interrupt       
REMAP_TO_APPLICATION_DEFAULT   T4Interrupt       
REMAP_TO_APPLICATION_DEFAULT   T5Interrupt       
REMAP_TO_APPLICATION_DEFAULT   INT2Interrupt       
REMAP_TO_APPLICATION   U2RXInterrupt       
REMAP_TO_APPLICATION   U2TXInterrupt       
REMAP_TO_APPLICATION_DEFAULT   SPI2Interrupt       
REMAP_TO_APPLICATION_DEFAULT   SPI2TXInterrupt       
REMAP_TO_APPLICATION_DEFAULT   Interrupt34       
REMAP_TO_APPLICATION_DEFAULT   Interrupt35       
REMAP_TO_APPLICATION_DEFAULT   DMA3Interrupt       
REMAP_TO_APPLICATION_DEFAULT   IC3Interrupt       
REMAP_TO_APPLICATION_DEFAULT   IC4Interrupt       
REMAP_TO_APPLICATION_DEFAULT   IC5Interrupt       
REMAP_TO_APPLICATION_DEFAULT   IC6Interrupt       
REMAP_TO_APPLICATION_DEFAULT   OC5Interrupt       
REMAP_TO_APPLICATION_DEFAULT   OC6Interrupt       
REMAP_TO_APPLICATION_DEFAULT   CCT3Interrupt       
REMAP_TO_APPLICATION_DEFAULT   CCT4Interrupt       
REMAP_TO_APPLICATION_DEFAULT   PMPInterrupt       
REMAP_TO_APPLICATION_DEFAULT   DMA4Interrupt       
REMAP_TO_APPLICATION_DEFAULT   CCT5Interrupt       
REMAP_TO_APPLICATION_DEFAULT   CCT6Interrupt       
REMAP_TO_APPLICATION_DEFAULT   SI2C2Interrupt       
REMAP_TO_APPLICATION_DEFAULT   MI2C2Interrupt       
REMAP_TO_APPLICATION_DEFAULT   CCT7Interrupt       
REMAP_TO_APPLICATION_DEFAULT   Interrupt52       
REMAP_TO_APPLICATION_DEFAULT   INT3Interrupt       
REMAP_TO_APPLICATION_DEFAULT   INT4Interrupt       
REMAP_TO_APPLICATION_DEFAULT   Interrupt55       
REMAP_TO_APPLICATION_DEFAULT   Interrupt56       
REMAP_TO_APPLICATION_DEFAULT   Interrupt57       
REMAP_TO_APPLICATION_DEFAULT   SPI1RXInterrupt       
REMAP_TO_APPLICATION_DEFAULT   SPI2RXInterrupt       
REMAP_TO_APPLICATION_DEFAULT   SPI3RXInterrupt       
REMAP_TO_APPLICATION_DEFAULT   DMA5Interrupt       
REMAP_TO_APPLICATION_DEFAULT   RTCCInterrupt       
REMAP_TO_APPLICATION_DEFAULT   CCP1Interrupt       
REMAP_TO_APPLICATION_DEFAULT   CCP2Interrupt       
REMAP_TO_APPLICATION   U1ErrInterrupt       
REMAP_TO_APPLICATION   U2ErrInterrupt       
REMAP_TO_APPLICATION_DEFAULT   CRCInterrupt       
REMAP_TO_APPLICATION_DEFAULT   DMA6Interrupt       
REMAP_TO_APPLICATION_DEFAULT   DMA7Interrupt       
REMAP_TO_APPLICATION_DEFAULT   SI2C3Interrupt       
REMAP_TO_APPLICATION_DEFAULT   MI2C3Interrupt       
REMAP_TO_APPLICATION_DEFAULT   LVDInterrupt       
REMAP_TO_APPLICATION_DEFAULT   CCP7Interrupt       
REMAP_TO_APPLICATION_DEFAULT   Interrupt74       
REMAP_TO_APPLICATION_DEFAULT   Interrupt75       
REMAP_TO_APPLICATION_DEFAULT   Interrupt76       
REMAP_TO_APPLICATION_DEFAULT   CTMUInterrupt       
REMAP_TO_APPLICATION_DEFAULT   Interrupt78       
REMAP_TO_APPLICATION_DEFAULT   Interrupt79       
REMAP_TO_APPLICATION_DEFAULT   Interrupt80       
REMAP_TO_APPLICATION   U3ErrInterrupt       
REMAP_TO_APPLICATION   U3RXInterrupt       
REMAP_TO_APPLICATION   U3TXInterrupt       
REMAP_TO_APPLICATION_DEFAULT   I2C1BCInterrupt       
REMAP_TO_APPLICATION_DEFAULT   I2C2BCInterrupt       
REMAP_TO_APPLICATION_DEFAULT   USB1Interrupt       
KEEP_IN_BOOTLOADER   U4ErrInterrupt       
KEEP_IN_BOOTLOADER   U4RXInterrupt       
KEEP_IN_BOOTLOADER   U4TXInterrupt       
REMAP_TO_APPLICATION_DEFAULT   SPI3Interrupt       
REMAP_TO_APPLICATION_DEFAULT   SPI3TXInterrupt       
REMAP_TO_APPLICATION_DEFAULT   Interrupt92       
REMAP_TO_APPLICATION_DEFAULT   Interrupt93       
REMAP_TO_APPLICATION_DEFAULT   CCP3Interrupt       
REMAP_TO_APPLICATION_DEFAULT   CCP4Interrupt       
REMAP_TO_APPLICATION_DEFAULT   CLC1Interrupt       
REMAP_TO_APPLICATION_DEFAULT   CLC2Interrupt       
REMAP_TO_APPLICATION_DEFAULT   CLC3Interrupt       
REMAP_TO_APPLICATION_DEFAULT   CLC4Interrupt       
REMAP_TO_APPLICATION_DEFAULT   Interrupt100       
REMAP_TO_APPLICATION_DEFAULT   CCT1Interrupt       
REMAP_TO_APPLICATION_DEFAULT   CCT2Interrupt       
REMAP_TO_APPLICATION_DEFAULT   Interrupt103       
REMAP_TO_APPLICATION_DEFAULT   Interrupt104       
REMAP_TO_APPLICATION_DEFAULT   Interrupt105       
REMAP_TO_APPLICATION_DEFAULT   FSTInterrupt       
REMAP_TO_APPLICATION_DEFAULT   Interrupt107       
REMAP_TO_APPLICATION_DEFAULT   Interrupt108       
REMAP_TO_APPLICATION_DEFAULT   I2C3BCInterrupt       
REMAP_TO_APPLICATION_DEFAULT   RTCCTSInterrupt       
REMAP_TO_APPLICATION_DEFAULT   U5RXInterrupt       
REMAP_TO_APPLICATION_DEFAULT   U5TXInterrupt       
REMAP_TO_APPLICATION_DEFAULT   U5ErrInterrupt       
REMAP_TO_APPLICATION_DEFAULT   U6RXInterrupt       
REMAP_TO_APPLICATION_DEFAULT   U6TXInterrupt       
REMAP_TO_APPLICATION_DEFAULT   U6ErrInterrupt       
REMAP_TO_APPLICATION_DEFAULT   JTAGInterrupt       

#endif
