[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 : wdt_iodefine.h
|
---|
| 25 | * $Rev: $
|
---|
| 26 | * $Date:: $
|
---|
[374] | 27 | * Description : Definition of I/O Register for RZ/A1H,M (V2.00h)
|
---|
[352] | 28 | ******************************************************************************/
|
---|
| 29 | #ifndef WDT_IODEFINE_H
|
---|
| 30 | #define WDT_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 */
|
---|
| 34 | /* ->SEC M1.10.1 : Not magic number */
|
---|
[352] | 35 |
|
---|
[374] | 36 | #define WDT (*(struct st_wdt *)0xFCFE0000uL) /* WDT */
|
---|
| 37 |
|
---|
| 38 |
|
---|
| 39 | #define WDTWTCSR (WDT.WTCSR)
|
---|
| 40 | #define WDTWTCNT (WDT.WTCNT)
|
---|
| 41 | #define WDTWRCSR (WDT.WRCSR)
|
---|
| 42 |
|
---|
| 43 |
|
---|
| 44 | typedef struct st_wdt
|
---|
| 45 | {
|
---|
| 46 | /* WDT */
|
---|
[352] | 47 | volatile uint16_t WTCSR; /* WTCSR */
|
---|
| 48 | volatile uint16_t WTCNT; /* WTCNT */
|
---|
| 49 | volatile uint16_t WRCSR; /* WRCSR */
|
---|
[374] | 50 | } r_io_wdt_t;
|
---|
[352] | 51 |
|
---|
| 52 |
|
---|
[374] | 53 | /* <-SEC M1.10.1 */
|
---|
| 54 | /* <-MISRA 18.4 */ /* <-SEC M1.6.2 */
|
---|
| 55 | /* <-QAC 0857 */
|
---|
| 56 | /* <-QAC 0639 */
|
---|
[352] | 57 | #endif
|
---|