Move write key and stage action select constants into headers

This commit is contained in:
Jeroen Domburg
2016-10-26 14:54:50 +08:00
parent bb1efe50c3
commit 9546ad5b5e
5 changed files with 32 additions and 23 deletions

View File

@@ -14,7 +14,8 @@
#ifndef _SOC_RTC_CNTL_REG_H_
#define _SOC_RTC_CNTL_REG_H_
#define WDT_WRITE_KEY 0x50D83AA1
/* The value that needs to be written to RTC_CNTL_WDT_WKEY to write-enable the wdt registers */
#define RTC_CNTL_WDT_WKEY_VALUE 0x50D83AA1
#include "soc.h"

View File

@@ -15,7 +15,15 @@
#define __TIMG_REG_H__
#include "soc.h"
#define WDT_WRITE_KEY 0x50D83AA1
/* The value that needs to be written to TIMG_WDT_WKEY to write-enable the wdt registers */
#define TIMG_WDT_WKEY_VALUE 0x50D83AA1
/* Possible values for TIMG_WDT_STGx */
#define TIMG_WDT_STG_SEL_OFF 0
#define TIMG_WDT_STG_SEL_INT 1
#define TIMG_WDT_STG_SEL_RESET_CPU 2
#define TIMG_WDT_STG_SEL_RESET_SYSTEM 3
#define REG_TIMG_BASE(i) (DR_REG_TIMERGROUP0_BASE + i*0x1000)
#define TIMG_T0CONFIG_REG(i) (REG_TIMG_BASE(i) + 0x0000)