test

Fork of mbed-dev by mbed official

Committer:
AnnaBridge
Date:
Wed Nov 08 13:50:44 2017 +0000
Revision:
178:d650f5d4c87a
Parent:
150:02e0a0aed4ec
This updates the lib to the mbed lib v 155

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 149:156823d33999 1 /**
<> 149:156823d33999 2 ******************************************************************************
<> 149:156823d33999 3 * @file wdt_map.h
<> 149:156823d33999 4 * @brief WDT HW register map
<> 149:156823d33999 5 * @internal
<> 149:156823d33999 6 * @author ON Semiconductor
<> 149:156823d33999 7 * $Rev: 3283 $
<> 149:156823d33999 8 * $Date: 2015-02-26 18:52:22 +0530 (Thu, 26 Feb 2015) $
<> 149:156823d33999 9 ******************************************************************************
<> 149:156823d33999 10 * Copyright 2016 Semiconductor Components Industries LLC (d/b/a “ON Semiconductor”).
<> 149:156823d33999 11 * All rights reserved. This software and/or documentation is licensed by ON Semiconductor
<> 149:156823d33999 12 * under limited terms and conditions. The terms and conditions pertaining to the software
<> 149:156823d33999 13 * and/or documentation are available at http://www.onsemi.com/site/pdf/ONSEMI_T&C.pdf
<> 149:156823d33999 14 * (“ON Semiconductor Standard Terms and Conditions of Sale, Section 8 Software”) and
<> 149:156823d33999 15 * if applicable the software license agreement. Do not use this software and/or
<> 149:156823d33999 16 * documentation unless you have carefully read and you agree to the limited terms and
<> 149:156823d33999 17 * conditions. By using this software and/or documentation, you agree to the limited
<> 149:156823d33999 18 * terms and conditions.
<> 149:156823d33999 19 *
<> 149:156823d33999 20 * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
<> 149:156823d33999 21 * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
<> 149:156823d33999 22 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
<> 149:156823d33999 23 * ON SEMICONDUCTOR SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL,
<> 149:156823d33999 24 * INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
<> 149:156823d33999 25 * @endinternal
<> 149:156823d33999 26 *
<> 149:156823d33999 27 * @ingroup wdt
<> 149:156823d33999 28 *
<> 149:156823d33999 29 * @details
<> 149:156823d33999 30 * <p>
<> 149:156823d33999 31 * Watchdog Timer HW register map description
<> 149:156823d33999 32 * </p>
<> 149:156823d33999 33 *
<> 149:156823d33999 34 */
<> 149:156823d33999 35
<> 149:156823d33999 36 #if defined ( __CC_ARM )
<> 149:156823d33999 37 #pragma anon_unions
<> 149:156823d33999 38 #endif
<> 149:156823d33999 39
<> 149:156823d33999 40 #ifndef WDT_MAP_H_
<> 149:156823d33999 41 #define WDT_MAP_H_
<> 149:156823d33999 42
<> 149:156823d33999 43 #include "architecture.h"
<> 149:156823d33999 44
<> 149:156823d33999 45 typedef struct {
<> 149:156823d33999 46 __IO uint32_t LOAD; /**< 0x4000A000 Contains the value from which the counter is decremented. When this register is written to the count is immediately restarted from the new value. The minimum valid value is 1. */
<> 149:156823d33999 47 __I uint32_t CURRENT_VALUE; /**< 0x4000A004 Gives the current value of the decrementing counter */
<> 149:156823d33999 48 union {
<> 149:156823d33999 49 struct {
<> 149:156823d33999 50 __IO uint32_t WDT_EN :1; /**< Watchdog enable, 0 – Watchdog disabled, 1 – Watchdog enabled */
<> 149:156823d33999 51 } BITS;
<> 149:156823d33999 52 __IO uint32_t WORD;
<> 149:156823d33999 53 } CONTROL; /* 0x4000A008 */
<> 149:156823d33999 54 __O uint32_t KICK; /**< 0x4000A00C A write of any value to this register reloads the value register from the load register */
<> 149:156823d33999 55 __O uint32_t LOCK; /**< 0x4000A010 Use of this register causes write-access to all other registers to be disabled. This is to prevent rogue software from disabling the watchdog functionality. Writing a value of 0x1ACCE551 enables write access to all other registers. Writing any other value disables write access. A read from this register only returns the bottom bit…, 0 – Write access is enabled, 1 – Write access is disabled */
<> 149:156823d33999 56 union {
<> 149:156823d33999 57 struct {
<> 149:156823d33999 58 __I uint32_t WRITE_BUSY_ANY :1; /**< Busy writing any register */
<> 149:156823d33999 59 __I uint32_t WRITE_BUSY_LOAD :1; /**< Busy writing the load register */
<> 149:156823d33999 60 __I uint32_t WRITE_BUSY_CONTROL :1; /**< Busy writing the control enable register */
<> 149:156823d33999 61 __IO uint32_t WRITE_ERROR :1; /**< Error bit. Set when write occurs before previous write completes (busy) */
<> 149:156823d33999 62 } BITS;
<> 149:156823d33999 63 __IO uint32_t WORD;
<> 149:156823d33999 64 } STATUS; /* 0x4000A014 */
<> 149:156823d33999 65 } WdtReg_t, *WdtReg_pt;
<> 149:156823d33999 66 #endif /* WDT_MAP_H_ */