versatile_struct.h
来自「realview22.rar」· C头文件 代码 · 共 60 行
H
60 行
/******************************************************************************
** **
** Copyright (c) 2004 ARM Limited **
** All rights reserved **
** **
******************************************************************************/
#ifndef __VSTRUCTDEF
#define __VSTRUCTDEF
/*****************************************************************************/
/* The following Structures map to Versatile register offsets */
/* Structures are instantiated in separate c files and placed by scatter file*/
/*****************************************************************************/
struct irq
{
volatile unsigned IRQStatus; // @0x00
volatile unsigned FIQStatus; // @0x04
volatile unsigned RAWIntStatus; // @0x08
volatile unsigned IRQSelect; // @0x0C
volatile unsigned Enable; // @0x10
};
struct timer
{
volatile unsigned Load; // @0x00
volatile unsigned Value; // @0x04
volatile unsigned Control; // @0x08
volatile unsigned Clear; // @0x0C
};
struct uart
{
volatile unsigned dr; // @0x00
volatile unsigned ecr; // @0x04
volatile unsigned lcrh; // @0x08
volatile unsigned lcrm; // @0x0C
volatile unsigned lcrl; // @0x10
volatile unsigned cr; // @0x14
volatile unsigned fr; // @0x18
volatile unsigned iir; // @0x1C
volatile unsigned ilpr; // @0x20
volatile unsigned ibrd; // @0x24
volatile unsigned fbrd; // @0x28
volatile unsigned lcrh11; // @0x2C
volatile unsigned cr11; // @0x30
};
struct rtc
{
volatile unsigned DR; // @0x00
volatile unsigned MR; // @0x04
volatile unsigned STAT; // @0x08
volatile unsigned LR; // @0x0C
volatile unsigned CR; // @0x10
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?