📄 lh79524_rtc.h
字号:
/**********************************************************************
* $Workfile: lh79524_rtc.h $
* $Revision: 1.0 $
* $Author: ZhangJ $
* $Date: Oct 20 2004 10:38:14 $
*
* Project: LH79524 RTC controller header file
*
* Description:
* This file contains the definitions for RTC controller on
* LH79524
*
* Revision History:
* $Log: //smaicnt2/pvcs/VM/sharpmcu/archives/sharpmcu/software/csps/lh79524/include/lh79524_rtc.h-arc $
*
* Rev 1.0 Oct 20 2004 10:38:14 ZhangJ
* Initial revision.
*
* Rev 1.0 Jul 07 2003 16:41:00 LiJ
* Initial revision.
*
* SHARP MICROELECTRONICS OF THE AMERICAS MAKES NO REPRESENTATION
* OR WARRANTIES WITH RESPECT TO THE PERFORMANCE OF THIS SOFTWARE,
* AND SPECIFICALLY DISCLAIMS ANY RESPONSIBILITY FOR ANY DAMAGES,
* SPECIAL OR CONSEQUENTIAL, CONNECTED WITH THE USE OF THIS SOFTWARE.
*
* SHARP MICROELECTRONICS OF THE AMERICAS PROVIDES THIS SOFTWARE SOLELY
* FOR THE PURPOSE OF SOFTWARE DEVELOPMENT INCORPORATING THE USE OF A
* SHARP MICROCONTROLLER OR SYSTEM-ON-CHIP PRODUCT. USE OF THIS SOURCE
* FILE IMPLIES ACCEPTANCE OF THESE CONDITIONS.
*
* COPYRIGHT (C) 2001 SHARP MICROELECTRONICS OF THE AMERICAS, INC.
* CAMAS, WA
*********************************************************************/
#if !defined LH79524_RTC_H
#define LH79524_RTC_H
#include "lh79524_chip.h"
/**********************************************************************
* Real Time Clock Module Register Structure
*********************************************************************/
typedef struct
{
volatile UNS_32 dr; /* Data */
volatile UNS_32 mr; /* Match */
volatile UNS_32 lr; /* Load */
volatile UNS_32 cr; /* Control */
volatile UNS_32 imsc; /* Interrupt Mask Set and Clear */
volatile UNS_32 ris; /* Raw Interrupt Status */
volatile UNS_32 mis; /* Masked Interrupt Status */
volatile UNS_32 icr; /* Interrupt Clear */
} RTC_REGS_T;
/**********************************************************************
* Real Time Clock Register Bit Fields
*********************************************************************/
/**********************************************************************
* RTC Control Register (cr) Bit Fields
*********************************************************************/
#define RTC_CR_START _BIT(0)
/**********************************************************************
* RTC Interrupt Mask Set and Clear Register (cr) Bit Fields
*********************************************************************/
#define RTC_IMSC_MASKED _BIT(0)
/**********************************************************************
* RTC Raw Interrupt Status Register (cr) Bit Fields
*********************************************************************/
#define RTC_RIS_INT _BIT(0)
/**********************************************************************
* RTC Masked Interrupt Status Register (cr) Bit Fields
*********************************************************************/
#define RTC_MIS_INT _BIT(0)
/**********************************************************************
* RTC Interrupt Clear Register (cr) Bit Fields
*********************************************************************/
#define RTC_ICR_CLEAR _BIT(0)
/* Macro pointing to RTC registers */
#define RTC ((RTC_REGS_T *)(RTC_BASE))
#endif /* LH79524_RTC_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -