📄 pxa255_rtc.h
字号:
// Copyright (c) David Vescovi. All rights reserved.
// Part of Project DrumStix
// Windows Embedded Developers Interest Group (WE-DIG) community project.
// http://www.we-dig.org
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
//
// Header: pxa255_rtc.h
//
// Defines the Real Time Clock (RTC) register layout and associated
// types and constants.
//
//------------------------------------------------------------------------------
#ifndef _PXA255_RTC_H_
#define _PXA255_RTC_H_
#if __cplusplus
extern "C" {
#endif
//------------------------------------------------------------------------------
//
// Type: RTC_REG_T
//
// Defines the RTC control register layout.
//
//------------------------------------------------------------------------------
typedef struct
{
VUINT32_T RCNR; // RTC count register
VUINT32_T RTAR; // RTC alarm register
VUINT32_T RTSR; // RTC status register
VUINT32_T RTTR; // RTC timer trim register
} RTC_REG_T, *PRTC_REG_T;
//
// RTSR Bits
//
#define RTSR_AL 0x00000001 // RTC Alarm detect
#define RTSR_HZ 0x00000002 // HZ rising edge detect
#define RTSR_ALE 0x00000004 // RTC Alarm enable
#define RTSR_HZE 0x00000008 // HZ enable
#define RTSR_RESERVED_BITS (0xFFFFFFF0)
//
// RTSR has mixed bits: r/w and sticky
// Mask for use with write to clear bits
//
#define RTSR_MASK (RTSR_AL | RTSR_HZ)
//------------------------------------------------------------------------------
#if __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -