Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
targets/hal/TARGET_ONSEMI/TARGET_NCS36510/reset_map.h
- Committer:
- <>
- Date:
- 2016-09-02
- Revision:
- 144:ef7eb2e8f9f7
- Child:
- 147:30b64687e01f
File content as of revision 144:ef7eb2e8f9f7:
/**
******************************************************************************
* @file reset_map.h
* @brief Reset hw module register map
* @internal
* @author ON Semiconductor
* $Rev: 2848 $
* $Date: 2014-04-01 22:48:18 +0530 (Tue, 01 Apr 2014) $
******************************************************************************
* @copyright (c) 2012 ON Semiconductor. All rights reserved.
* ON Semiconductor is supplying this software for use with ON Semiconductor
* processor based microcontrollers only.
*
* THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
* OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
* ON SEMICONDUCTOR SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL,
* INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
* @endinternal
*
* @ingroup reset
*
* @details
*/
#ifndef RESET_MAP_H_
#define RESET_MAP_H_
/*************************************************************************************************
* *
* Header files *
* *
*************************************************************************************************/
#include "architecture.h"
/**************************************************************************************************
* *
* Type definitions *
* *
**************************************************************************************************/
/** Reset status and clear register.
* Also contains HW revision ID.
*/
typedef struct {
union {
struct {
__I uint32_t LOCKUP:1; /**< 1:Core did lock up */
__I uint32_t WDOGRES:1; /**< 1:Watchdog reset occurred */
__I uint32_t EXTRESET:1; /**< 1:External reset occurred */
__I uint32_t SYSRESETREQ:1; /**< 1:System reset occurred */
__I uint32_t POR:1; /**< 1:POR reset occurred */
} BITS;
__I uint32_t WORD;
} SOURCE;
__O uint32_t CLEARSOURCE; /**< writing any value to this register will clear the reset source register */
__I uint32_t HWREVID; /**< Hardware ID, 0x80215400 */
__IO uint32_t CONTROL; /**< External Reset & Watchdog behavior: 0 External Reset & Watchdog will reset debug logic 1 External Reset & Watchdog will not reset debug logic */
} ResetReg_t, *ResetReg_pt;
#endif /* RESET_MAP_H_ */
