Renesas GR-PEACH OpenCV Development / gr-peach-opencv-project-sd-card_update

Fork of gr-peach-opencv-project-sd-card by the do

Committer:
thedo
Date:
Fri Jul 21 01:26:54 2017 +0000
Revision:
167:2ee3e82cb6f5
gr-peach-opencv-project-sd-card

Who changed what in which revision?

UserRevisionLine numberNew contents of line
thedo 167:2ee3e82cb6f5 1 /*******************************************************************************
thedo 167:2ee3e82cb6f5 2 * DISCLAIMER
thedo 167:2ee3e82cb6f5 3 * This software is supplied by Renesas Electronics Corporation and is only
thedo 167:2ee3e82cb6f5 4 * intended for use with Renesas products. No other uses are authorized. This
thedo 167:2ee3e82cb6f5 5 * software is owned by Renesas Electronics Corporation and is protected under
thedo 167:2ee3e82cb6f5 6 * all applicable laws, including copyright laws.
thedo 167:2ee3e82cb6f5 7 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
thedo 167:2ee3e82cb6f5 8 * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
thedo 167:2ee3e82cb6f5 9 * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
thedo 167:2ee3e82cb6f5 10 * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
thedo 167:2ee3e82cb6f5 11 * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
thedo 167:2ee3e82cb6f5 12 * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
thedo 167:2ee3e82cb6f5 13 * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
thedo 167:2ee3e82cb6f5 14 * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
thedo 167:2ee3e82cb6f5 15 * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
thedo 167:2ee3e82cb6f5 16 * Renesas reserves the right, without notice, to make changes to this software
thedo 167:2ee3e82cb6f5 17 * and to discontinue the availability of this software. By using this software,
thedo 167:2ee3e82cb6f5 18 * you agree to the additional terms and conditions found by accessing the
thedo 167:2ee3e82cb6f5 19 * following link:
thedo 167:2ee3e82cb6f5 20 * http://www.renesas.com/disclaimer*
thedo 167:2ee3e82cb6f5 21 * Copyright (C) 2013-2014 Renesas Electronics Corporation. All rights reserved.
thedo 167:2ee3e82cb6f5 22 *******************************************************************************/
thedo 167:2ee3e82cb6f5 23 /*******************************************************************************
thedo 167:2ee3e82cb6f5 24 * File Name : rspi_iodefine.h
thedo 167:2ee3e82cb6f5 25 * $Rev: $
thedo 167:2ee3e82cb6f5 26 * $Date:: $
thedo 167:2ee3e82cb6f5 27 * Description : Definition of I/O Register (V1.00a)
thedo 167:2ee3e82cb6f5 28 ******************************************************************************/
thedo 167:2ee3e82cb6f5 29 #ifndef RSPI_IODEFINE_H
thedo 167:2ee3e82cb6f5 30 #define RSPI_IODEFINE_H
thedo 167:2ee3e82cb6f5 31 /* ->SEC M1.10.1 : Not magic number */
thedo 167:2ee3e82cb6f5 32
thedo 167:2ee3e82cb6f5 33 #include "reg32_t.h"
thedo 167:2ee3e82cb6f5 34
thedo 167:2ee3e82cb6f5 35 struct st_rspi
thedo 167:2ee3e82cb6f5 36 { /* RSPI */
thedo 167:2ee3e82cb6f5 37 volatile uint8_t SPCR; /* SPCR */
thedo 167:2ee3e82cb6f5 38 volatile uint8_t SSLP; /* SSLP */
thedo 167:2ee3e82cb6f5 39 volatile uint8_t SPPCR; /* SPPCR */
thedo 167:2ee3e82cb6f5 40 volatile uint8_t SPSR; /* SPSR */
thedo 167:2ee3e82cb6f5 41 union reg32_t SPDR; /* SPDR */
thedo 167:2ee3e82cb6f5 42
thedo 167:2ee3e82cb6f5 43 volatile uint8_t SPSCR; /* SPSCR */
thedo 167:2ee3e82cb6f5 44 volatile uint8_t SPSSR; /* SPSSR */
thedo 167:2ee3e82cb6f5 45 volatile uint8_t SPBR; /* SPBR */
thedo 167:2ee3e82cb6f5 46 volatile uint8_t SPDCR; /* SPDCR */
thedo 167:2ee3e82cb6f5 47 volatile uint8_t SPCKD; /* SPCKD */
thedo 167:2ee3e82cb6f5 48 volatile uint8_t SSLND; /* SSLND */
thedo 167:2ee3e82cb6f5 49 volatile uint8_t SPND; /* SPND */
thedo 167:2ee3e82cb6f5 50 volatile uint8_t dummy1[1]; /* */
thedo 167:2ee3e82cb6f5 51 #define SPCMD_COUNT 4
thedo 167:2ee3e82cb6f5 52 volatile uint16_t SPCMD0; /* SPCMD0 */
thedo 167:2ee3e82cb6f5 53 volatile uint16_t SPCMD1; /* SPCMD1 */
thedo 167:2ee3e82cb6f5 54 volatile uint16_t SPCMD2; /* SPCMD2 */
thedo 167:2ee3e82cb6f5 55 volatile uint16_t SPCMD3; /* SPCMD3 */
thedo 167:2ee3e82cb6f5 56 volatile uint8_t dummy2[8]; /* */
thedo 167:2ee3e82cb6f5 57 volatile uint8_t SPBFCR; /* SPBFCR */
thedo 167:2ee3e82cb6f5 58 volatile uint8_t dummy3[1]; /* */
thedo 167:2ee3e82cb6f5 59 volatile uint16_t SPBFDR; /* SPBFDR */
thedo 167:2ee3e82cb6f5 60 };
thedo 167:2ee3e82cb6f5 61
thedo 167:2ee3e82cb6f5 62
thedo 167:2ee3e82cb6f5 63 #define RSPI0 (*(struct st_rspi *)0xE800C800uL) /* RSPI0 */
thedo 167:2ee3e82cb6f5 64 #define RSPI1 (*(struct st_rspi *)0xE800D000uL) /* RSPI1 */
thedo 167:2ee3e82cb6f5 65 #define RSPI2 (*(struct st_rspi *)0xE800D800uL) /* RSPI2 */
thedo 167:2ee3e82cb6f5 66 #define RSPI3 (*(struct st_rspi *)0xE800E000uL) /* RSPI3 */
thedo 167:2ee3e82cb6f5 67 #define RSPI4 (*(struct st_rspi *)0xE800E800uL) /* RSPI4 */
thedo 167:2ee3e82cb6f5 68
thedo 167:2ee3e82cb6f5 69
thedo 167:2ee3e82cb6f5 70 /* Start of channnel array defines of RSPI */
thedo 167:2ee3e82cb6f5 71
thedo 167:2ee3e82cb6f5 72 /* Channnel array defines of RSPI */
thedo 167:2ee3e82cb6f5 73 /*(Sample) value = RSPI[ channel ]->SPCR; */
thedo 167:2ee3e82cb6f5 74 #define RSPI_COUNT 5
thedo 167:2ee3e82cb6f5 75 #define RSPI_ADDRESS_LIST \
thedo 167:2ee3e82cb6f5 76 { /* ->MISRA 11.3 */ /* ->SEC R2.7.1 */ \
thedo 167:2ee3e82cb6f5 77 &RSPI0, &RSPI1, &RSPI2, &RSPI3, &RSPI4 \
thedo 167:2ee3e82cb6f5 78 } /* <-MISRA 11.3 */ /* <-SEC R2.7.1 */ /* { } is for MISRA 19.4 */
thedo 167:2ee3e82cb6f5 79
thedo 167:2ee3e82cb6f5 80 /* End of channnel array defines of RSPI */
thedo 167:2ee3e82cb6f5 81
thedo 167:2ee3e82cb6f5 82
thedo 167:2ee3e82cb6f5 83 #define SPCR_0 RSPI0.SPCR
thedo 167:2ee3e82cb6f5 84 #define SSLP_0 RSPI0.SSLP
thedo 167:2ee3e82cb6f5 85 #define SPPCR_0 RSPI0.SPPCR
thedo 167:2ee3e82cb6f5 86 #define SPSR_0 RSPI0.SPSR
thedo 167:2ee3e82cb6f5 87 #define SPDR_0 RSPI0.SPDR.UINT32
thedo 167:2ee3e82cb6f5 88 #define SPDR_0L RSPI0.SPDR.UINT16[L]
thedo 167:2ee3e82cb6f5 89 #define SPDR_0H RSPI0.SPDR.UINT16[H]
thedo 167:2ee3e82cb6f5 90 #define SPDR_0LL RSPI0.SPDR.UINT8[LL]
thedo 167:2ee3e82cb6f5 91 #define SPDR_0LH RSPI0.SPDR.UINT8[LH]
thedo 167:2ee3e82cb6f5 92 #define SPDR_0HL RSPI0.SPDR.UINT8[HL]
thedo 167:2ee3e82cb6f5 93 #define SPDR_0HH RSPI0.SPDR.UINT8[HH]
thedo 167:2ee3e82cb6f5 94 #define SPSCR_0 RSPI0.SPSCR
thedo 167:2ee3e82cb6f5 95 #define SPSSR_0 RSPI0.SPSSR
thedo 167:2ee3e82cb6f5 96 #define SPBR_0 RSPI0.SPBR
thedo 167:2ee3e82cb6f5 97 #define SPDCR_0 RSPI0.SPDCR
thedo 167:2ee3e82cb6f5 98 #define SPCKD_0 RSPI0.SPCKD
thedo 167:2ee3e82cb6f5 99 #define SSLND_0 RSPI0.SSLND
thedo 167:2ee3e82cb6f5 100 #define SPND_0 RSPI0.SPND
thedo 167:2ee3e82cb6f5 101 #define SPCMD0_0 RSPI0.SPCMD0
thedo 167:2ee3e82cb6f5 102 #define SPCMD1_0 RSPI0.SPCMD1
thedo 167:2ee3e82cb6f5 103 #define SPCMD2_0 RSPI0.SPCMD2
thedo 167:2ee3e82cb6f5 104 #define SPCMD3_0 RSPI0.SPCMD3
thedo 167:2ee3e82cb6f5 105 #define SPBFCR_0 RSPI0.SPBFCR
thedo 167:2ee3e82cb6f5 106 #define SPBFDR_0 RSPI0.SPBFDR
thedo 167:2ee3e82cb6f5 107 #define SPCR_1 RSPI1.SPCR
thedo 167:2ee3e82cb6f5 108 #define SSLP_1 RSPI1.SSLP
thedo 167:2ee3e82cb6f5 109 #define SPPCR_1 RSPI1.SPPCR
thedo 167:2ee3e82cb6f5 110 #define SPSR_1 RSPI1.SPSR
thedo 167:2ee3e82cb6f5 111 #define SPDR_1 RSPI1.SPDR.UINT32
thedo 167:2ee3e82cb6f5 112 #define SPDR_1L RSPI1.SPDR.UINT16[L]
thedo 167:2ee3e82cb6f5 113 #define SPDR_1H RSPI1.SPDR.UINT16[H]
thedo 167:2ee3e82cb6f5 114 #define SPDR_1LL RSPI1.SPDR.UINT8[LL]
thedo 167:2ee3e82cb6f5 115 #define SPDR_1LH RSPI1.SPDR.UINT8[LH]
thedo 167:2ee3e82cb6f5 116 #define SPDR_1HL RSPI1.SPDR.UINT8[HL]
thedo 167:2ee3e82cb6f5 117 #define SPDR_1HH RSPI1.SPDR.UINT8[HH]
thedo 167:2ee3e82cb6f5 118 #define SPSCR_1 RSPI1.SPSCR
thedo 167:2ee3e82cb6f5 119 #define SPSSR_1 RSPI1.SPSSR
thedo 167:2ee3e82cb6f5 120 #define SPBR_1 RSPI1.SPBR
thedo 167:2ee3e82cb6f5 121 #define SPDCR_1 RSPI1.SPDCR
thedo 167:2ee3e82cb6f5 122 #define SPCKD_1 RSPI1.SPCKD
thedo 167:2ee3e82cb6f5 123 #define SSLND_1 RSPI1.SSLND
thedo 167:2ee3e82cb6f5 124 #define SPND_1 RSPI1.SPND
thedo 167:2ee3e82cb6f5 125 #define SPCMD0_1 RSPI1.SPCMD0
thedo 167:2ee3e82cb6f5 126 #define SPCMD1_1 RSPI1.SPCMD1
thedo 167:2ee3e82cb6f5 127 #define SPCMD2_1 RSPI1.SPCMD2
thedo 167:2ee3e82cb6f5 128 #define SPCMD3_1 RSPI1.SPCMD3
thedo 167:2ee3e82cb6f5 129 #define SPBFCR_1 RSPI1.SPBFCR
thedo 167:2ee3e82cb6f5 130 #define SPBFDR_1 RSPI1.SPBFDR
thedo 167:2ee3e82cb6f5 131 #define SPCR_2 RSPI2.SPCR
thedo 167:2ee3e82cb6f5 132 #define SSLP_2 RSPI2.SSLP
thedo 167:2ee3e82cb6f5 133 #define SPPCR_2 RSPI2.SPPCR
thedo 167:2ee3e82cb6f5 134 #define SPSR_2 RSPI2.SPSR
thedo 167:2ee3e82cb6f5 135 #define SPDR_2 RSPI2.SPDR.UINT32
thedo 167:2ee3e82cb6f5 136 #define SPDR_2L RSPI2.SPDR.UINT16[L]
thedo 167:2ee3e82cb6f5 137 #define SPDR_2H RSPI2.SPDR.UINT16[H]
thedo 167:2ee3e82cb6f5 138 #define SPDR_2LL RSPI2.SPDR.UINT8[LL]
thedo 167:2ee3e82cb6f5 139 #define SPDR_2LH RSPI2.SPDR.UINT8[LH]
thedo 167:2ee3e82cb6f5 140 #define SPDR_2HL RSPI2.SPDR.UINT8[HL]
thedo 167:2ee3e82cb6f5 141 #define SPDR_2HH RSPI2.SPDR.UINT8[HH]
thedo 167:2ee3e82cb6f5 142 #define SPSCR_2 RSPI2.SPSCR
thedo 167:2ee3e82cb6f5 143 #define SPSSR_2 RSPI2.SPSSR
thedo 167:2ee3e82cb6f5 144 #define SPBR_2 RSPI2.SPBR
thedo 167:2ee3e82cb6f5 145 #define SPDCR_2 RSPI2.SPDCR
thedo 167:2ee3e82cb6f5 146 #define SPCKD_2 RSPI2.SPCKD
thedo 167:2ee3e82cb6f5 147 #define SSLND_2 RSPI2.SSLND
thedo 167:2ee3e82cb6f5 148 #define SPND_2 RSPI2.SPND
thedo 167:2ee3e82cb6f5 149 #define SPCMD0_2 RSPI2.SPCMD0
thedo 167:2ee3e82cb6f5 150 #define SPCMD1_2 RSPI2.SPCMD1
thedo 167:2ee3e82cb6f5 151 #define SPCMD2_2 RSPI2.SPCMD2
thedo 167:2ee3e82cb6f5 152 #define SPCMD3_2 RSPI2.SPCMD3
thedo 167:2ee3e82cb6f5 153 #define SPBFCR_2 RSPI2.SPBFCR
thedo 167:2ee3e82cb6f5 154 #define SPBFDR_2 RSPI2.SPBFDR
thedo 167:2ee3e82cb6f5 155 #define SPCR_3 RSPI3.SPCR
thedo 167:2ee3e82cb6f5 156 #define SSLP_3 RSPI3.SSLP
thedo 167:2ee3e82cb6f5 157 #define SPPCR_3 RSPI3.SPPCR
thedo 167:2ee3e82cb6f5 158 #define SPSR_3 RSPI3.SPSR
thedo 167:2ee3e82cb6f5 159 #define SPDR_3 RSPI3.SPDR.UINT32
thedo 167:2ee3e82cb6f5 160 #define SPDR_3L RSPI3.SPDR.UINT16[L]
thedo 167:2ee3e82cb6f5 161 #define SPDR_3H RSPI3.SPDR.UINT16[H]
thedo 167:2ee3e82cb6f5 162 #define SPDR_3LL RSPI3.SPDR.UINT8[LL]
thedo 167:2ee3e82cb6f5 163 #define SPDR_3LH RSPI3.SPDR.UINT8[LH]
thedo 167:2ee3e82cb6f5 164 #define SPDR_3HL RSPI3.SPDR.UINT8[HL]
thedo 167:2ee3e82cb6f5 165 #define SPDR_3HH RSPI3.SPDR.UINT8[HH]
thedo 167:2ee3e82cb6f5 166 #define SPSCR_3 RSPI3.SPSCR
thedo 167:2ee3e82cb6f5 167 #define SPSSR_3 RSPI3.SPSSR
thedo 167:2ee3e82cb6f5 168 #define SPBR_3 RSPI3.SPBR
thedo 167:2ee3e82cb6f5 169 #define SPDCR_3 RSPI3.SPDCR
thedo 167:2ee3e82cb6f5 170 #define SPCKD_3 RSPI3.SPCKD
thedo 167:2ee3e82cb6f5 171 #define SSLND_3 RSPI3.SSLND
thedo 167:2ee3e82cb6f5 172 #define SPND_3 RSPI3.SPND
thedo 167:2ee3e82cb6f5 173 #define SPCMD0_3 RSPI3.SPCMD0
thedo 167:2ee3e82cb6f5 174 #define SPCMD1_3 RSPI3.SPCMD1
thedo 167:2ee3e82cb6f5 175 #define SPCMD2_3 RSPI3.SPCMD2
thedo 167:2ee3e82cb6f5 176 #define SPCMD3_3 RSPI3.SPCMD3
thedo 167:2ee3e82cb6f5 177 #define SPBFCR_3 RSPI3.SPBFCR
thedo 167:2ee3e82cb6f5 178 #define SPBFDR_3 RSPI3.SPBFDR
thedo 167:2ee3e82cb6f5 179 #define SPCR_4 RSPI4.SPCR
thedo 167:2ee3e82cb6f5 180 #define SSLP_4 RSPI4.SSLP
thedo 167:2ee3e82cb6f5 181 #define SPPCR_4 RSPI4.SPPCR
thedo 167:2ee3e82cb6f5 182 #define SPSR_4 RSPI4.SPSR
thedo 167:2ee3e82cb6f5 183 #define SPDR_4 RSPI4.SPDR.UINT32
thedo 167:2ee3e82cb6f5 184 #define SPDR_4L RSPI4.SPDR.UINT16[L]
thedo 167:2ee3e82cb6f5 185 #define SPDR_4H RSPI4.SPDR.UINT16[H]
thedo 167:2ee3e82cb6f5 186 #define SPDR_4LL RSPI4.SPDR.UINT8[LL]
thedo 167:2ee3e82cb6f5 187 #define SPDR_4LH RSPI4.SPDR.UINT8[LH]
thedo 167:2ee3e82cb6f5 188 #define SPDR_4HL RSPI4.SPDR.UINT8[HL]
thedo 167:2ee3e82cb6f5 189 #define SPDR_4HH RSPI4.SPDR.UINT8[HH]
thedo 167:2ee3e82cb6f5 190 #define SPSCR_4 RSPI4.SPSCR
thedo 167:2ee3e82cb6f5 191 #define SPSSR_4 RSPI4.SPSSR
thedo 167:2ee3e82cb6f5 192 #define SPBR_4 RSPI4.SPBR
thedo 167:2ee3e82cb6f5 193 #define SPDCR_4 RSPI4.SPDCR
thedo 167:2ee3e82cb6f5 194 #define SPCKD_4 RSPI4.SPCKD
thedo 167:2ee3e82cb6f5 195 #define SSLND_4 RSPI4.SSLND
thedo 167:2ee3e82cb6f5 196 #define SPND_4 RSPI4.SPND
thedo 167:2ee3e82cb6f5 197 #define SPCMD0_4 RSPI4.SPCMD0
thedo 167:2ee3e82cb6f5 198 #define SPCMD1_4 RSPI4.SPCMD1
thedo 167:2ee3e82cb6f5 199 #define SPCMD2_4 RSPI4.SPCMD2
thedo 167:2ee3e82cb6f5 200 #define SPCMD3_4 RSPI4.SPCMD3
thedo 167:2ee3e82cb6f5 201 #define SPBFCR_4 RSPI4.SPBFCR
thedo 167:2ee3e82cb6f5 202 #define SPBFDR_4 RSPI4.SPBFDR
thedo 167:2ee3e82cb6f5 203 /* <-SEC M1.10.1 */
thedo 167:2ee3e82cb6f5 204 #endif
thedo 167:2ee3e82cb6f5 205