mcf5208_wtm.h

来自「motorola 针对coldfire 5275 评估板的Dbug bootlo」· C头文件 代码 · 共 42 行

H
42
字号
/*
 * File:	mcf5208_wtm.h
 * Purpose:	Register and bit definitions for the MCF5208
 *
 * Notes:	
 *	
 */

#ifndef __MCF5208_WTM_H__
#define __MCF5208_WTM_H__

/*********************************************************************
*
* Watchdog Timer Modules (WTM)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_WTM_WCR          (*(vuint16   *)(0xFC08C000))
#define MCF_WTM_WMR          (*(vuint16   *)(0xFC08C002))
#define MCF_WTM_WCNTR        (*(vuint16   *)(0xFC08C004))
#define MCF_WTM_WSR          (*(vuint16   *)(0xFC08C006))

/* Bit definitions and macros for MCF_WTM_WCR */
#define MCF_WTM_WCR_EN       (0x0001)
#define MCF_WTM_WCR_HALTED   (0x0002)
#define MCF_WTM_WCR_DOZE     (0x0004)
#define MCF_WTM_WCR_WAIT     (0x0008)

/* Bit definitions and macros for MCF_WTM_WMR */
#define MCF_WTM_WMR_WM(x)    (((x)&0xFFFF)<<0)

/* Bit definitions and macros for MCF_WTM_WCNTR */
#define MCF_WTM_WCNTR_WC(x)  (((x)&0xFFFF)<<0)

/* Bit definitions and macros for MCF_WTM_WSR */
#define MCF_WTM_WSR_WS(x)    (((x)&0xFFFF)<<0)

/********************************************************************/

#endif /* __MCF5208_WTM_H__ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?