pxa255_ost.h
来自「老外的一个开源项目」· C头文件 代码 · 共 75 行
H
75 行
// 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_ost.h
//
// Defines the OS timer register layout and associated types and constants.
//
//------------------------------------------------------------------------------
#ifndef _PXA255_OST_H_
#define _PXA255_OST_H_
#if __cplusplus
extern "C" {
#endif
//------------------------------------------------------------------------------
//
// Type: OST_REG_T
//
// Defines the OS timer control register layout.
//
//------------------------------------------------------------------------------
typedef struct
{
VUINT32_T OSMR0; //OS timer match register 0
VUINT32_T OSMR1; //OS timer match register 1
VUINT32_T OSMR2; //OS timer match register 2
VUINT32_T OSMR3; //OS timer match register 3
VUINT32_T OSCR; //OS timer counter register
VUINT32_T OSSR; //OS timer status register
VUINT32_T OWER; //OS timer watchdog enable register
VUINT32_T OIER; //OS timer interrupt enable register
} OST_REG_T, *POST_REG_T;
//
// OSSR Bits
//
#define OSSR_M0 0x00000001
#define OSSR_M1 0x00000002
#define OSSR_M2 0x00000004
#define OSSR_M3 0x00000008
#define OSSR_RESERVED_BITS (0xFFFFFFF0)
//
// OIER Bits
//
#define OIER_E0 0x00000001
#define OIER_E1 0x00000002
#define OIER_E2 0x00000004
#define OIER_E3 0x00000008
//
// OWER Bits
//
#define OWER_WME 0x00000001
#define OIER_RESERVED_BITS (0xFFFFFFF0)
//------------------------------------------------------------------------------
#if __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?