1 /***********************************************************************************************************************
\r
3 * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products.
\r
4 * No other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all
\r
5 * applicable laws, including copyright laws.
\r
6 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIESREGARDING THIS SOFTWARE, WHETHER EXPRESS, IMPLIED
\r
7 * OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
\r
8 * NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY
\r
9 * LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE FOR ANY DIRECT,
\r
10 * INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR
\r
11 * ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
\r
12 * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability
\r
13 * of this software. By using this software, you agree to the additional terms and conditions found by accessing the
\r
15 * http://www.renesas.com/disclaimer
\r
17 * Copyright (C) 2015 Renesas Electronics Corporation. All rights reserved.
\r
18 ***********************************************************************************************************************/
\r
20 /***********************************************************************************************************************
\r
21 * File Name : r_cg_intprg.c
\r
22 * Version : Code Generator for RZ/T1 V1.00.00.09 [02 Mar 2015]
\r
23 * Device(s) : R7S910018CBG
\r
24 * Tool-Chain : GCCARM
\r
25 * Description : Set the non-maskable interrupt.
\r
26 * Creation Date: 22/04/2015
\r
27 ***********************************************************************************************************************/
\r
29 /***********************************************************************************************************************
\r
31 ***********************************************************************************************************************/
\r
32 /* Start user code for pragma. Do not edit comment generated here */
\r
33 /* End user code. Do not edit comment generated here */
\r
35 /***********************************************************************************************************************
\r
37 ***********************************************************************************************************************/
\r
38 #include "r_cg_macrodriver.h"
\r
39 #include "r_cg_userdefine.h"
\r
41 /***********************************************************************************************************************
\r
42 Global variables and functions
\r
43 ***********************************************************************************************************************/
\r
44 /***********************************************************************************************************************
\r
45 * Function Name: r_set_exception_handler
\r
46 * Description : None
\r
48 * Return Value : None
\r
49 ***********************************************************************************************************************/
\r
50 void r_set_exception_handler(void)
\r
54 /* FIQ exception handler address */
\r
55 pointer = (uint32_t *)0x1c;
\r
57 /* Branch to next address instruction */
\r
58 *pointer ++ = 0xeaffffff;
\r
60 /* LDR PC,[PC, #-0x04], load r_fiq_handler address to PC */
\r
61 *pointer ++ = 0xe51ff004;
\r
63 /* DC32 r_fiq_handler, define the r_fiq_handler address */
\r
64 *pointer = (uint32_t)r_fiq_handler;
\r
66 /* Start user code. Do not edit comment generated here */
\r
67 /* End user code. Do not edit comment generated here */
\r
69 /***********************************************************************************************************************
\r
70 * Function Name: r_fiq_handler
\r
71 * Description : None
\r
73 * Return Value : None
\r
74 ***********************************************************************************************************************/
\r
77 #endif /* __ICCARM__ */
\r
78 void r_fiq_handler(void)
\r
81 /* Start user code. Do not edit comment generated here */
\r
82 /* End user code. Do not edit comment generated here */
\r
86 /* Start user code for adding. Do not edit comment generated here */
\r
87 /* End user code. Do not edit comment generated here */
\r