+++ /dev/null
-/***********************************************************************************************************************\r
-* DISCLAIMER\r
-* This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No \r
-* other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all \r
-* applicable laws, including copyright laws. \r
-* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING\r
-* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, \r
-* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM \r
-* EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES \r
-* SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO THIS \r
-* SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\r
-* Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of \r
-* this software. By using this software, you agree to the additional terms and conditions found by accessing the \r
-* following link:\r
-* http://www.renesas.com/disclaimer \r
-*\r
-* Copyright (C) 2012 Renesas Electronics Corporation. All rights reserved. \r
-***********************************************************************************************************************/\r
-/***********************************************************************************************************************\r
-* File Name : vecttbl.c\r
-* Device(s) : RX\r
-* Description : Definition of the fixed vector table\r
-***********************************************************************************************************************/\r
-/***********************************************************************************************************************\r
-* History : DD.MM.YYYY Version Description\r
-* : 26.10.2011 1.00 First Release\r
-* : 17.02.2012 1.10 Made function names compliant with CS v4.0\r
-* : 13.03.2012 1.20 ID Code is now specified in r_bsp_config.h. It is still used here in Fixed_Vectors[].\r
-***********************************************************************************************************************/\r
-\r
-/***********************************************************************************************************************\r
-Includes <System Includes> , "Project Includes"\r
-***********************************************************************************************************************/\r
-#include <stdint.h>\r
-#include <machine.h>\r
-#include "platform.h"\r
-\r
-/***********************************************************************************************************************\r
-* Function name: PowerON_Reset_PC\r
-* Description : The reset vector points to this function. Code execution starts in this function after reset.\r
-* Arguments : none\r
-* Return value : none\r
-***********************************************************************************************************************/\r
-extern void PowerON_Reset_PC(void); \r
-\r
-/***********************************************************************************************************************\r
-* Function name: excep_supervisor_inst_isr\r
-* Description : Supervisor Instruction Violation ISR\r
-* Arguments : none\r
-* Return Value : none\r
-***********************************************************************************************************************/\r
-#pragma interrupt (excep_supervisor_inst_isr)\r
-void excep_supervisor_inst_isr(void)\r
-{\r
- /* Add your own code here to handle this exception */\r
- nop();\r
-}\r
-\r
-/***********************************************************************************************************************\r
-* Function name: excep_undefined_inst_isr\r
-* Description : Undefined instruction exception ISR\r
-* Arguments : none\r
-* Return Value : none\r
-***********************************************************************************************************************/\r
-#pragma interrupt (excep_undefined_inst_isr)\r
-void excep_undefined_inst_isr(void)\r
-{\r
- /* Add your own code here to handle this exception */\r
- nop();\r
-}\r
-\r
-/***********************************************************************************************************************\r
-* Function name: excep_floating_point_isr\r
-* Description : Floating point exception ISR\r
-* Arguments : none\r
-* Return Value : none\r
-***********************************************************************************************************************/\r
-#pragma interrupt (excep_floating_point_isr)\r
-void excep_floating_point_isr(void)\r
-{\r
- /* Add your own code here to handle this exception */\r
- nop();\r
-}\r
-\r
-/***********************************************************************************************************************\r
-* Function name: non_maskable_isr\r
-* Description : Non-maskable interrupt ISR\r
-* Arguments : none\r
-* Return Value : none\r
-***********************************************************************************************************************/\r
-#pragma interrupt (non_maskable_isr)\r
-void non_maskable_isr(void)\r
-{\r
- /* Add your own code here to handle this exception */\r
- nop();\r
-}\r
-\r
-/***********************************************************************************************************************\r
-* Function name: undefined_interrupt_source_isr\r
-* Description : All undefined interrupt vectors point to this function.\r
-* Set a breakpoint in this function to determine which source is creating unwanted interrupts.\r
-* Arguments : none\r
-* Return Value : none\r
-***********************************************************************************************************************/\r
-#pragma interrupt (undefined_interrupt_source_isr)\r
-void undefined_interrupt_source_isr(void)\r
-{\r
- /* Add your own code here to handle this exception */\r
- nop();\r
-}\r
-\r
-/***********************************************************************************************************************\r
-* Function name: bus_error_isr\r
-* Description : By default, this demo code enables the Bus Error Interrupt. This interrupt will fire if the user tries \r
-* to access code or data from one of the reserved areas in the memory map, including the areas covered \r
-* by disabled chip selects. A nop() statement is included here as a convenient place to set a breakpoint \r
-* during debugging and development, and further handling should be added by the user for their \r
-* application.\r
-* Arguments : none\r
-* Return value : none\r
-***********************************************************************************************************************/\r
-#pragma interrupt (bus_error_isr(vect=VECT(BSC,BUSERR)))\r
-void bus_error_isr (void)\r
-{\r
- /* \r
- To find the address that was accessed when the bus error occured, read the register BSC.BERSR2.WORD. The upper \r
- 13 bits of this register contain the upper 13-bits of the offending address (in 512K byte units)\r
- */\r
- \r
- /* Add your own code here to handle this interrupt */\r
- nop();\r
-}\r
-\r
-/***********************************************************************************************************************\r
-* The following array fills in the fixed vector table and the code\r
-* protecction ID bytes.\r
-***********************************************************************************************************************/\r
-#pragma section C FIXEDVECT\r
-\r
-void* const Fixed_Vectors[] = {\r
- \r
-/* 0xffffff90 through 0xffffff9f: Reserved area - must be all 0xFF */\r
- (void *)0xFFFFFFFF, /* 0xffffff90 - Reserved */\r
- (void *)0xFFFFFFFF, /* 0xffffff94 - Reserved */\r
- (void *)0xFFFFFFFF, /* 0xffffff98 - Reserved */\r
-\r
-/* The 32-bit area immediately below (0xffffff9c through 0xffffff9f) is a special area that allows the ROM to be \r
- protected from reading or writing by a parallel programmer. Please refer to the HW manual for appropriate settings.\r
- The default (all 0xff) places no restrictions and therefore allows reads and writes by a parallel programmer. */\r
- (void *)0xFFFFFFFF, /* 0xffffff9C - ROM Code Protection */\r
-\r
-/* The memory are immediately below (0xffffffa0 through 0xffffffaf) is a special area that allows the on-chip firmware \r
- to be protected. See the section "ID Code Protection" in the HW manual for details on how to enable protection. \r
- Setting the four long words below to non-0xFF values will enable protection. Do this only after carefully review \r
- the HW manual */\r
- \r
-/* 0xffffffA0 through 0xffffffaf: ID Code Protection. The ID code is specified using macros in r_bsp_config.h. */\r
- (void *) ID_CODE_LONG_1, /* 0xffffffA0 - Control code and ID code */\r
- (void *) ID_CODE_LONG_2, /* 0xffffffA4 - ID code (cont.) */\r
- (void *) ID_CODE_LONG_3, /* 0xffffffA8 - ID code (cont.) */\r
- (void *) ID_CODE_LONG_4, /* 0xffffffAC - ID code (cont.) */\r
- \r
-/* 0xffffffB0 through 0xffffffcf: Reserved area */\r
- (void *) 0xFFFFFFFF, /* 0xffffffB0 - Reserved */\r
- (void *) 0xFFFFFFFF, /* 0xffffffB4 - Reserved */\r
- (void *) 0xFFFFFFFF, /* 0xffffffB8 - Reserved */\r
- (void *) 0xFFFFFFFF, /* 0xffffffBC - Reserved */\r
- (void *) 0xFFFFFFFF, /* 0xffffffC0 - Reserved */\r
- (void *) 0xFFFFFFFF, /* 0xffffffC4 - Reserved */\r
- (void *) 0xFFFFFFFF, /* 0xffffffC8 - Reserved */\r
- (void *) 0xFFFFFFFF, /* 0xffffffCC - Reserved */\r
-\r
-/* Fixed vector table */\r
- (void *) excep_supervisor_inst_isr, /* 0xffffffd0 Exception(Supervisor Instruction) */\r
- (void *) undefined_interrupt_source_isr, /* 0xffffffd4 Reserved */\r
- (void *) undefined_interrupt_source_isr, /* 0xffffffd8 Reserved */\r
- (void *) excep_undefined_inst_isr, /* 0xffffffdc Exception(Undefined Instruction) */\r
- (void *) undefined_interrupt_source_isr, /* 0xffffffe0 Reserved */\r
- (void *) excep_floating_point_isr, /* 0xffffffe4 Exception(Floating Point) */\r
- (void *) undefined_interrupt_source_isr, /* 0xffffffe8 Reserved */\r
- (void *) undefined_interrupt_source_isr, /* 0xffffffec Reserved */\r
- (void *) undefined_interrupt_source_isr, /* 0xfffffff0 Reserved */\r
- (void *) undefined_interrupt_source_isr, /* 0xfffffff4 Reserved */\r
- (void *) non_maskable_isr, /* 0xfffffff8 NMI */\r
- (void *) PowerON_Reset_PC /* 0xfffffffc RESET */\r
-};\r