⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 s3c2410x_rtc.h

📁 Windows CE documentation and examples from the Windows CE development manuals. There are lots of exa
💻 H
字号:
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this sample source code is subject to the terms of the Microsoft
// license agreement under which you licensed this sample source code. If
// you did not accept the terms of the license agreement, you are not
// authorized to use this sample source code. For the terms of the license,
// please see the license agreement between you and Microsoft or, if applicable,
// see the LICENSE.RTF on your install media or the root of your tools installation.
// THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES.
//
//------------------------------------------------------------------------------
//
//  Header: s3c2410x_rtc.h
//
//  Defines the Real Time Clock (RTC) register layout and associated 
//  types and constants.
//
#ifndef __S3C2410X_RTC_H__
#define __S3C2410X_RTC_H__

#if __cplusplus
extern "C" {
#endif

//------------------------------------------------------------------------------
//
//  Type: S3C2410X_RTC_REG    
//
//  RTC control registers. This register bank is located by the constant 
//  S3C2410X_BASE_REG_XX_RTC in the configuration file s3c2410x_base_reg_cfg.h.
//

typedef struct {
    UINT32 PAD1[16];                // pad to - 0x3C
    UINT32 RTCCON;                  // control reg
    UINT32 TICINT;                  // tick time count reg
    UINT32 PAD2[2];                 // pad
    UINT32 RTCALM;                  // alarm control reg
    UINT32 ALMSEC;                  // alarm sec data reg
    UINT32 ALMMIN;                  // alarm min data reg
    UINT32 ALMHOUR;                 // alarm hour data reg
    UINT32 ALMDATE;                 // alarm date (day) data reg
    UINT32 ALMMON;                  // alarm month data reg
    UINT32 ALMYEAR;                 // alarm year data reg
    UINT32 RTCRST;                  // round reset reg
    UINT32 BCDSEC;                  // BCD values...
    UINT32 BCDMIN;             
    UINT32 BCDHOUR;
    UINT32 BCDDAY;
    UINT32 BCDDATE;
    UINT32 BCDMON;
    UINT32 BCDYEAR;

} S3C2410X_RTC_REG, *PS3C2410X_RTC_REG;    

//------------------------------------------------------------------------------

#if __cplusplus
}
#endif

#endif 

⌨️ 快捷键说明

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