The official mbed C/C SDK provides the software platform and libraries to build your applications.
Fork of mbed by
TARGET_RZ_A1H/cpg_iodefine.h
- Committer:
- Mikchel
- Date:
- 2015-05-03
- Revision:
- 99:7f6c6de930c0
- Parent:
- 92:4fc01daae5a5
File content as of revision 99:7f6c6de930c0:
/******************************************************************************* * DISCLAIMER * This software is supplied by Renesas Electronics Corporation and is only * intended for use with Renesas products. No other uses are authorized. This * software is owned by Renesas Electronics Corporation and is protected under * all applicable laws, including copyright laws. * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. * Renesas reserves the right, without notice, to make changes to this software * and to discontinue the availability of this software. By using this software, * you agree to the additional terms and conditions found by accessing the * following link: * http://www.renesas.com/disclaimer* * Copyright (C) 2013-2014 Renesas Electronics Corporation. All rights reserved. *******************************************************************************/ /******************************************************************************* * File Name : cpg_iodefine.h * $Rev: $ * $Date:: $ * Description : Definition of I/O Register (V1.00a) ******************************************************************************/ #ifndef CPG_IODEFINE_H #define CPG_IODEFINE_H /* ->SEC M1.10.1 : Not magic number */ struct st_cpg { /* CPG */ volatile uint16_t FRQCR; /* FRQCR */ volatile uint8_t dummy319[2]; /* */ volatile uint16_t FRQCR2; /* FRQCR2 */ volatile uint8_t dummy320[2]; /* */ volatile uint8_t CPUSTS; /* CPUSTS */ volatile uint8_t dummy321[7]; /* */ volatile uint8_t STBCR1; /* STBCR1 */ volatile uint8_t dummy322[3]; /* */ volatile uint8_t STBCR2; /* STBCR2 */ volatile uint8_t dummy323[11]; /* */ volatile uint8_t STBREQ1; /* STBREQ1 */ volatile uint8_t dummy324[3]; /* */ volatile uint8_t STBREQ2; /* STBREQ2 */ volatile uint8_t dummy325[11]; /* */ volatile uint8_t STBACK1; /* STBACK1 */ volatile uint8_t dummy326[3]; /* */ volatile uint8_t STBACK2; /* STBACK2 */ volatile uint8_t dummy327[955]; /* */ /* start of struct st_cpg_from_syscr1 */ volatile uint8_t SYSCR1; /* SYSCR1 */ volatile uint8_t dummy328[3]; /* */ /* end of struct st_cpg_from_syscr1 */ /* start of struct st_cpg_from_syscr1 */ volatile uint8_t SYSCR2; /* SYSCR2 */ volatile uint8_t dummy329[3]; /* */ /* end of struct st_cpg_from_syscr1 */ /* start of struct st_cpg_from_syscr1 */ volatile uint8_t SYSCR3; /* SYSCR3 */ volatile uint8_t dummy3300[3]; /* */ /* end of struct st_cpg_from_syscr1 */ volatile uint8_t dummy3301[20]; /* */ /* start of struct st_cpg_from_stbcr3 */ volatile uint8_t STBCR3; /* STBCR3 */ volatile uint8_t dummy331[3]; /* */ /* end of struct st_cpg_from_stbcr3 */ /* start of struct st_cpg_from_stbcr3 */ volatile uint8_t STBCR4; /* STBCR4 */ volatile uint8_t dummy332[3]; /* */ /* end of struct st_cpg_from_stbcr3 */ /* start of struct st_cpg_from_stbcr3 */ volatile uint8_t STBCR5; /* STBCR5 */ volatile uint8_t dummy333[3]; /* */ /* end of struct st_cpg_from_stbcr3 */ /* start of struct st_cpg_from_stbcr3 */ volatile uint8_t STBCR6; /* STBCR6 */ volatile uint8_t dummy334[3]; /* */ /* end of struct st_cpg_from_stbcr3 */ /* start of struct st_cpg_from_stbcr3 */ volatile uint8_t STBCR7; /* STBCR7 */ volatile uint8_t dummy335[3]; /* */ /* end of struct st_cpg_from_stbcr3 */ /* start of struct st_cpg_from_stbcr3 */ volatile uint8_t STBCR8; /* STBCR8 */ volatile uint8_t dummy336[3]; /* */ /* end of struct st_cpg_from_stbcr3 */ /* start of struct st_cpg_from_stbcr3 */ volatile uint8_t STBCR9; /* STBCR9 */ volatile uint8_t dummy337[3]; /* */ /* end of struct st_cpg_from_stbcr3 */ /* start of struct st_cpg_from_stbcr3 */ volatile uint8_t STBCR10; /* STBCR10 */ volatile uint8_t dummy338[3]; /* */ /* end of struct st_cpg_from_stbcr3 */ /* start of struct st_cpg_from_stbcr3 */ volatile uint8_t STBCR11; /* STBCR11 */ volatile uint8_t dummy339[3]; /* */ /* end of struct st_cpg_from_stbcr3 */ /* start of struct st_cpg_from_stbcr3 */ volatile uint8_t STBCR12; /* STBCR12 */ volatile uint8_t dummy3400[3]; /* */ /* end of struct st_cpg_from_stbcr3 */ volatile uint8_t dummy3401[24]; /* */ /* start of struct st_cpg_from_swrstcr1 */ volatile uint8_t SWRSTCR1; /* SWRSTCR1 */ volatile uint8_t dummy341[3]; /* */ /* end of struct st_cpg_from_swrstcr1 */ /* start of struct st_cpg_from_swrstcr1 */ volatile uint8_t SWRSTCR2; /* SWRSTCR2 */ volatile uint8_t dummy342[3]; /* */ /* end of struct st_cpg_from_swrstcr1 */ /* start of struct st_cpg_from_swrstcr1 */ volatile uint8_t SWRSTCR3; /* SWRSTCR3 */ volatile uint8_t dummy3430[3]; /* */ /* end of struct st_cpg_from_swrstcr1 */ volatile uint8_t dummy3431[4]; /* */ volatile uint8_t STBCR13; /* STBCR13 */ volatile uint8_t dummy344[70543]; /* */ volatile uint8_t RRAMKP; /* RRAMKP */ volatile uint8_t dummy345[1]; /* */ volatile uint8_t DSCTR; /* DSCTR */ volatile uint8_t dummy346[1]; /* */ volatile uint16_t DSSSR; /* DSSSR */ volatile uint16_t DSESR; /* DSESR */ volatile uint16_t DSFR; /* DSFR */ volatile uint8_t dummy347[6]; /* */ volatile uint8_t XTALCTR; /* XTALCTR */ }; struct st_cpg_from_syscr1 { volatile uint8_t SYSCR1; /* SYSCR1 */ volatile uint8_t dummy1[3]; /* */ }; struct st_cpg_from_stbcr3 { volatile uint8_t STBCR3; /* STBCR3 */ volatile uint8_t dummy1[3]; /* */ }; struct st_cpg_from_swrstcr1 { volatile uint8_t SWRSTCR1; /* SWRSTCR1 */ volatile uint8_t dummy1[3]; /* */ }; #define CPG (*(struct st_cpg *)0xFCFE0010uL) /* CPG */ /* Start of channnel array defines of CPG */ /* Channnel array defines of CPG_FROM_SWRSTCR1_ARRAY */ /*(Sample) value = CPG_FROM_SWRSTCR1_ARRAY[ channel ]->SWRSTCR1; */ #define CPG_FROM_SWRSTCR1_ARRAY_COUNT 3 #define CPG_FROM_SWRSTCR1_ARRAY_ADDRESS_LIST \ { /* ->MISRA 11.3 */ /* ->SEC R2.7.1 */ \ &CPG_FROM_SWRSTCR1, &CPG_FROM_SWRSTCR2, &CPG_FROM_SWRSTCR3 \ } /* <-MISRA 11.3 */ /* <-SEC R2.7.1 */ /* { } is for MISRA 19.4 */ #define CPG_FROM_SWRSTCR1 (*(struct st_cpg_from_swrstcr1 *)&CPG.SWRSTCR1) /* CPG_FROM_SWRSTCR1 */ #define CPG_FROM_SWRSTCR2 (*(struct st_cpg_from_swrstcr1 *)&CPG.SWRSTCR2) /* CPG_FROM_SWRSTCR2 */ #define CPG_FROM_SWRSTCR3 (*(struct st_cpg_from_swrstcr1 *)&CPG.SWRSTCR3) /* CPG_FROM_SWRSTCR3 */ /* Channnel array defines of CPG_FROM_STBCR3_ARRAY */ /*(Sample) value = CPG_FROM_STBCR3_ARRAY[ channel ]->STBCR3; */ #define CPG_FROM_STBCR3_ARRAY_COUNT 10 #define CPG_FROM_STBCR3_ARRAY_ADDRESS_LIST \ { /* ->MISRA 11.3 */ /* ->SEC R2.7.1 */ \ &CPG_FROM_STBCR3, &CPG_FROM_STBCR4, &CPG_FROM_STBCR5, &CPG_FROM_STBCR6, &CPG_FROM_STBCR7, &CPG_FROM_STBCR8, &CPG_FROM_STBCR9, &CPG_FROM_STBCR10, \ &CPG_FROM_STBCR11, &CPG_FROM_STBCR12 \ } /* <-MISRA 11.3 */ /* <-SEC R2.7.1 */ /* { } is for MISRA 19.4 */ #define CPG_FROM_STBCR3 (*(struct st_cpg_from_stbcr3 *)&CPG.STBCR3) /* CPG_FROM_STBCR3 */ #define CPG_FROM_STBCR4 (*(struct st_cpg_from_stbcr3 *)&CPG.STBCR4) /* CPG_FROM_STBCR4 */ #define CPG_FROM_STBCR5 (*(struct st_cpg_from_stbcr3 *)&CPG.STBCR5) /* CPG_FROM_STBCR5 */ #define CPG_FROM_STBCR6 (*(struct st_cpg_from_stbcr3 *)&CPG.STBCR6) /* CPG_FROM_STBCR6 */ #define CPG_FROM_STBCR7 (*(struct st_cpg_from_stbcr3 *)&CPG.STBCR7) /* CPG_FROM_STBCR7 */ #define CPG_FROM_STBCR8 (*(struct st_cpg_from_stbcr3 *)&CPG.STBCR8) /* CPG_FROM_STBCR8 */ #define CPG_FROM_STBCR9 (*(struct st_cpg_from_stbcr3 *)&CPG.STBCR9) /* CPG_FROM_STBCR9 */ #define CPG_FROM_STBCR10 (*(struct st_cpg_from_stbcr3 *)&CPG.STBCR10) /* CPG_FROM_STBCR10 */ #define CPG_FROM_STBCR11 (*(struct st_cpg_from_stbcr3 *)&CPG.STBCR11) /* CPG_FROM_STBCR11 */ #define CPG_FROM_STBCR12 (*(struct st_cpg_from_stbcr3 *)&CPG.STBCR12) /* CPG_FROM_STBCR12 */ /* Channnel array defines of CPG_FROM_SYSCR1_ARRAY */ /*(Sample) value = CPG_FROM_SYSCR1_ARRAY[ channel ]->SYSCR1; */ #define CPG_FROM_SYSCR1_ARRAY_COUNT 3 #define CPG_FROM_SYSCR1_ARRAY_ADDRESS_LIST \ { /* ->MISRA 11.3 */ /* ->SEC R2.7.1 */ \ &CPG_FROM_SYSCR1, &CPG_FROM_SYSCR2, &CPG_FROM_SYSCR3 \ } /* <-MISRA 11.3 */ /* <-SEC R2.7.1 */ /* { } is for MISRA 19.4 */ #define CPG_FROM_SYSCR1 (*(struct st_cpg_from_syscr1 *)&CPG.SYSCR1) /* CPG_FROM_SYSCR1 */ #define CPG_FROM_SYSCR2 (*(struct st_cpg_from_syscr1 *)&CPG.SYSCR2) /* CPG_FROM_SYSCR2 */ #define CPG_FROM_SYSCR3 (*(struct st_cpg_from_syscr1 *)&CPG.SYSCR3) /* CPG_FROM_SYSCR3 */ /* End of channnel array defines of CPG */ #define CPGFRQCR CPG.FRQCR #define CPGFRQCR2 CPG.FRQCR2 #define CPGCPUSTS CPG.CPUSTS #define CPGSTBCR1 CPG.STBCR1 #define CPGSTBCR2 CPG.STBCR2 #define CPGSTBREQ1 CPG.STBREQ1 #define CPGSTBREQ2 CPG.STBREQ2 #define CPGSTBACK1 CPG.STBACK1 #define CPGSTBACK2 CPG.STBACK2 #define CPGSYSCR1 CPG.SYSCR1 #define CPGSYSCR2 CPG.SYSCR2 #define CPGSYSCR3 CPG.SYSCR3 #define CPGSTBCR3 CPG.STBCR3 #define CPGSTBCR4 CPG.STBCR4 #define CPGSTBCR5 CPG.STBCR5 #define CPGSTBCR6 CPG.STBCR6 #define CPGSTBCR7 CPG.STBCR7 #define CPGSTBCR8 CPG.STBCR8 #define CPGSTBCR9 CPG.STBCR9 #define CPGSTBCR10 CPG.STBCR10 #define CPGSTBCR11 CPG.STBCR11 #define CPGSTBCR12 CPG.STBCR12 #define CPGSWRSTCR1 CPG.SWRSTCR1 #define CPGSWRSTCR2 CPG.SWRSTCR2 #define CPGSWRSTCR3 CPG.SWRSTCR3 #define CPGSTBCR13 CPG.STBCR13 #define CPGRRAMKP CPG.RRAMKP #define CPGDSCTR CPG.DSCTR #define CPGDSSSR CPG.DSSSR #define CPGDSESR CPG.DSESR #define CPGDSFR CPG.DSFR #define CPGXTALCTR CPG.XTALCTR /* <-SEC M1.10.1 */ #endif