mcf52255_bwt.h

来自「冷火MCF52255开发板精华资料」· C头文件 代码 · 共 47 行

H
47
字号
/********************************************************************/
/* Coldfire C Header File
 *
 *     Date      : 2009/04/30
 *     Revision  : 0.8
 *
 *     Copyright : 1997 - 2009 Freescale Semiconductor, Inc. All Rights Reserved.
 *
 *     http      : www.freescale.com
 *     mail      : support@freescale.com
 */

#ifndef __MCF52255_BWT_H__
#define __MCF52255_BWT_H__


/*********************************************************************
*
* Backup Watchdog Timer Module (BWT)
*
*********************************************************************/

/* Register read/write macros */
#define MCF_BWT_WCR                          (*(vuint16*)(0x40140000))
#define MCF_BWT_WMR                          (*(vuint16*)(0x40140002))
#define MCF_BWT_WCNTR                        (*(vuint16*)(0x40140004))
#define MCF_BWT_WSR                          (*(vuint16*)(0x40140006))


/* Bit definitions and macros for MCF_BWT_WCR */
#define MCF_BWT_WCR_EN                       (0x1)
#define MCF_BWT_WCR_DOZE                     (0x4)
#define MCF_BWT_WCR_WAIT                     (0x8)
#define MCF_BWT_WCR_STOP                     (0x10)

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

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

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


#endif /* __MCF52255_BWT_H__ */

⌨️ 快捷键说明

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