source: asp3_tinet_ecnl_arm/trunk/asp3_dcre/mbed/targets/TARGET_RENESAS/TARGET_RZA1XX/TARGET_RZ_A1H/device/inc/iodefines/scim_iodefine.h

Last change on this file was 374, checked in by coas-nagasima, 5 years ago

mbed関連を更新
シリアルドライバをmbedのHALを使うよう変更
ファイルディスクリプタの処理を更新

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr;charset=UTF-8
File size: 4.4 KB
Line 
1/*******************************************************************************
2* DISCLAIMER
3* This software is supplied by Renesas Electronics Corporation and is only
4* intended for use with Renesas products. No other uses are authorized. This
5* software is owned by Renesas Electronics Corporation and is protected under
6* all applicable laws, including copyright laws.
7* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
8* THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
9* LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
10* AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
11* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
12* ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
13* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
14* ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
15* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
16* Renesas reserves the right, without notice, to make changes to this software
17* and to discontinue the availability of this software. By using this software,
18* you agree to the additional terms and conditions found by accessing the
19* following link:
20* http://www.renesas.com/disclaimer*
21* Copyright (C) 2013-2015 Renesas Electronics Corporation. All rights reserved.
22*******************************************************************************/
23/*******************************************************************************
24* File Name : scim_iodefine.h
25* $Rev: $
26* $Date:: $
27* Description : Definition of I/O Register for RZ/A1H,M (V2.00h)
28******************************************************************************/
29#ifndef SCIM_IODEFINE_H
30#define SCIM_IODEFINE_H
31/* ->QAC 0639 : Over 127 members (C90) */
32/* ->QAC 0857 : Over 1024 #define (C90) */
33/* ->MISRA 18.4 : Pack unpack union */ /* ->SEC M1.6.2 */
34/* ->SEC M1.10.1 : Not magic number */
35
36#define SCIM0 (*(struct st_scim *)0xE800B000uL) /* SCIM0 */
37#define SCIM1 (*(struct st_scim *)0xE800B800uL) /* SCIM1 */
38
39
40/* Start of channel array defines of SCIM */
41
42/* Channel array defines of SCIM */
43/*(Sample) value = SCIM[ channel ]->SMR; */
44#define SCIM_COUNT (2)
45#define SCIM_ADDRESS_LIST \
46{ /* ->MISRA 11.3 */ /* ->SEC R2.7.1 */ \
47 &SCIM0, &SCIM1 \
48} /* <-MISRA 11.3 */ /* <-SEC R2.7.1 */ /* { } is for MISRA 19.4 */
49
50/* End of channel array defines of SCIM */
51
52
53#define SMR0 (SCIM0.SMR)
54#define BRR0 (SCIM0.BRR)
55#define SCR0 (SCIM0.SCR)
56#define TDR0 (SCIM0.TDR)
57#define SSR0 (SCIM0.SSR)
58#define RDR0 (SCIM0.RDR)
59#define SCMR0 (SCIM0.SCMR)
60#define SEMR0 (SCIM0.SEMR)
61#define SNFR0 (SCIM0.SNFR)
62#define SECR0 (SCIM0.SECR)
63#define SMR1 (SCIM1.SMR)
64#define BRR1 (SCIM1.BRR)
65#define SCR1 (SCIM1.SCR)
66#define TDR1 (SCIM1.TDR)
67#define SSR1 (SCIM1.SSR)
68#define RDR1 (SCIM1.RDR)
69#define SCMR1 (SCIM1.SCMR)
70#define SEMR1 (SCIM1.SEMR)
71#define SNFR1 (SCIM1.SNFR)
72#define SECR1 (SCIM1.SECR)
73
74
75typedef struct st_scim
76{
77 /* SCIM */
78 volatile uint8_t SMR; /* SMR */
79 volatile uint8_t BRR; /* BRR */
80 volatile uint8_t SCR; /* SCR */
81 volatile uint8_t TDR; /* TDR */
82 volatile uint8_t SSR; /* SSR */
83 volatile uint8_t RDR; /* RDR */
84 volatile uint8_t SCMR; /* SCMR */
85 volatile uint8_t SEMR; /* SEMR */
86 volatile uint8_t SNFR; /* SNFR */
87 volatile uint8_t dummy1[4]; /* */
88 volatile uint8_t SECR; /* SECR */
89} r_io_scim_t;
90
91
92/* Channel array defines of SCIM (2)*/
93#ifdef DECLARE_SCIM_CHANNELS
94volatile struct st_scim* SCIM[ SCIM_COUNT ] =
95 /* ->MISRA 11.3 */ /* ->SEC R2.7.1 */
96 SCIM_ADDRESS_LIST;
97 /* <-MISRA 11.3 */ /* <-SEC R2.7.1 */
98#endif /* DECLARE_SCIM_CHANNELS */
99/* End of channel array defines of SCIM (2)*/
100
101
102/* <-SEC M1.10.1 */
103/* <-MISRA 18.4 */ /* <-SEC M1.6.2 */
104/* <-QAC 0857 */
105/* <-QAC 0639 */
106#endif
Note: See TracBrowser for help on using the repository browser.