[352] | 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*
|
---|
[374] | 21 | * Copyright (C) 2013-2015 Renesas Electronics Corporation. All rights reserved.
|
---|
[352] | 22 | *******************************************************************************/
|
---|
| 23 | /*******************************************************************************
|
---|
| 24 | * File Name : scim_iodefine.h
|
---|
| 25 | * $Rev: $
|
---|
| 26 | * $Date:: $
|
---|
[374] | 27 | * Description : Definition of I/O Register for RZ/A1H,M (V2.00h)
|
---|
[352] | 28 | ******************************************************************************/
|
---|
| 29 | #ifndef SCIM_IODEFINE_H
|
---|
| 30 | #define SCIM_IODEFINE_H
|
---|
[374] | 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 */
|
---|
[352] | 34 | /* ->SEC M1.10.1 : Not magic number */
|
---|
| 35 |
|
---|
[374] | 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 |
|
---|
| 75 | typedef struct st_scim
|
---|
| 76 | {
|
---|
| 77 | /* SCIM */
|
---|
[352] | 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 */
|
---|
[374] | 89 | } r_io_scim_t;
|
---|
[352] | 90 |
|
---|
| 91 |
|
---|
[374] | 92 | /* Channel array defines of SCIM (2)*/
|
---|
| 93 | #ifdef DECLARE_SCIM_CHANNELS
|
---|
| 94 | volatile 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)*/
|
---|
[352] | 100 |
|
---|
| 101 |
|
---|
| 102 | /* <-SEC M1.10.1 */
|
---|
[374] | 103 | /* <-MISRA 18.4 */ /* <-SEC M1.6.2 */
|
---|
| 104 | /* <-QAC 0857 */
|
---|
| 105 | /* <-QAC 0639 */
|
---|
[352] | 106 | #endif
|
---|