1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
//============================================================================
// PROJECT : Example project
//============================================================================
// C O P Y R I G H T
//============================================================================
// Copyright (c) 2013 by Renesas Electronics Europe GmbH. All rights reserved.
// Arcadiastr.10
// D-40472 Duesseldorf
// Germany
//============================================================================
//
// Warranty Disclaimer :
// Because the Product(s) is licensed free of charge, there is no warranty of
// any kind whatsoever and expressly disclaimed and excluded by Renesas, either
// expressed or implied, including but not limited to those for non-
// infringement of intellectual property, merchantability and/or fitness for
// the particular purpose. Renesas shall not have any obligation to maintain,
// service or provide bug fixes for the supplied Product(s) and/or the
// Application.
//
// Each User is solely responsible for determining the appropriateness of
// using the Product(s) and assumes all risks associated with its exercise
// of rights under this Agreement, including, but not limited to the risks
// and costs of program errors, compliance with applicable laws, damage to
// or loss of data, programs or equipment, and unavailability or
// interruption of operations.
//
// Limitation of Liability :
// In no event shall Renesas be liable to the User for any incidental,
// consequential, indirect, or punitive damage (including but not limited to
// lost profits) regardless of whether such liability is based on breach of
// contract, tort, strict liability, breach of warranties, failure of
// essential purpose or otherwise and even if advised of the possibility of
// such damages. Renesas shall not be liable for any services or products provided
// by third party vendors, developers or consultants identified or referred
// to the User by Renesas in connection with the Product(s) and/or the
// Application.
//
//============================================================================
//
// Device specific main header file to be included in all source files.
//
//============================================================================
#ifndef R_DEVICE_H
#define R_DEVICE_H
//============================================================================
// Includes
//============================================================================
#ifdef __IAR_SYSTEMS_ICC__
#define __IAR__ __IAR_SYSTEMS_CC__
#endif
#ifdef __GHS__
#include "dr7f701684.dvf.h"
#include "icu_feret.h"
#include "cpu.h"
#define __nop() __asm("nop")
#endif /* __GHS__ */
#ifdef __IAR__
#include <intrinsics.h>
#include "dr7f701684.dvf.h"
#define __nop() __asm("nop")
#define __SYNCP() __asm("syncp")
#endif /* __IAR__ */
#ifdef __CSP__
#include "dr7f701684.dvf.h"
#pragma inline_asm __SYNCP
static void __SYNCP(void)
{
syncp;
}
#define RET_RAM_BEG 0xFEDF8000
#define RET_RAM_END 0xFEDFFFFF
#endif /* __CSP__ */
#include "r_typedefs.h"
//============================================================================
// Defines
//============================================================================
#define protected_write(preg,pstatus,reg,value) do{\
(preg)=0xa5u;\
(reg)=(value);\
(reg)=~(value);\
(reg)=(value);\
}while((pstatus)==1u)
#endif /* R_DEVICE_H */