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

📄 pxa255_pwr.h

📁 老外的一个开源项目
💻 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_pwr.h
//
//  Defines the power manager and reset control
//  register layout and associated types and constants.
//
//------------------------------------------------------------------------------
#ifndef _PXA255_PWR_H_
#define _PXA255_PWR_H_

#if __cplusplus
extern "C" {
#endif


//------------------------------------------------------------------------------
//
//  Type: PWR_REG_T    
//
//  Defines the power manager and reset control register layout.
//
//------------------------------------------------------------------------------

typedef struct
{
	VUINT32_T	PMCR;
	VUINT32_T	PSSR;
	VUINT32_T	PSPR;
	VUINT32_T	PWER;
	VUINT32_T	PRER;
	VUINT32_T	PFER;
	VUINT32_T	PEDR;
	VUINT32_T	PCFR;
	VUINT32_T	PGSR0;
	VUINT32_T	PGSR1;
	VUINT32_T	PGSR2;
	VUINT32_T	RCSR;
} PWR_REG_T, *PPWR_REG_T;

//
// PMCR Bits
//
#define PMCR_IDAE	0x00000001

//
// PSSR Bits
//
#define PSSR_SSS	0x00000001
#define PSSR_BFS	0x00000002
#define PSSR_VFS	0x00000004

#define PSSR_PH		0x00000010
#define PSSR_RDH	0x00000020

//
// PWER Bits
//
#define PWER_WE0	0x00000001
#define PWER_WE1	0x00000002
#define PWER_WE2	0x00000004
#define PWER_WE3	0x00000008
#define PWER_WE4	0x00000010
#define PWER_WE5	0x00000020
#define PWER_WE6	0x00000040
#define PWER_WE7	0x00000080
#define PWER_WE8	0x00000100
#define PWER_WE9	0x00000200
#define PWER_WE10	0x00000400
#define PWER_WE11	0x00000800
#define PWER_WE12	0x00001000
#define PWER_WE13	0x00002000
#define PWER_WE14	0x00004000
#define PWER_WE15	0x00008000

#define PWER_WERTC	0x80000000

//
// PRER Bits
//
#define PRER_RE0	0x00000001
#define PRER_RE1	0x00000002
#define PRER_RE2	0x00000004
#define PRER_RE3	0x00000008
#define PRER_RE4	0x00000010
#define PRER_RE5	0x00000020
#define PRER_RE6	0x00000040
#define PRER_RE7	0x00000080
#define PRER_RE8	0x00000100
#define PRER_RE9	0x00000200
#define PRER_RE10	0x00000400
#define PRER_RE11	0x00000800
#define PRER_RE12	0x00001000
#define PRER_RE13	0x00002000
#define PRER_RE14	0x00004000
#define PRER_RE15	0x00008000


//
// PFER Bits
//
#define PFER_FE0	0x00000001
#define PFER_FE1	0x00000002
#define PFER_FE2	0x00000004
#define PFER_FE3	0x00000008
#define PFER_FE4	0x00000010
#define PFER_FE5	0x00000020
#define PFER_FE6	0x00000040
#define PFER_FE7	0x00000080
#define PFER_FE8	0x00000100
#define PFER_FE9	0x00000200
#define PFER_FE10	0x00000400
#define PFER_FE11	0x00000800
#define PFER_FE12	0x00001000
#define PFER_FE13	0x00002000
#define PFER_FE14	0x00004000
#define PFER_FE15	0x00008000

//
// PEDR Bits
//
#define PEDR_ED0	0x00000001
#define PEDR_ED1	0x00000002
#define PEDR_ED2	0x00000004
#define PEDR_ED3	0x00000008
#define PEDR_ED4	0x00000010
#define PEDR_ED5	0x00000020
#define PEDR_ED6	0x00000040
#define PEDR_ED7	0x00000080
#define PEDR_ED8	0x00000100
#define PEDR_ED9	0x00000200
#define PEDR_ED10	0x00000400
#define PEDR_ED11	0x00000800
#define PEDR_ED12	0x00001000
#define PEDR_ED13	0x00002000
#define PEDR_ED14	0x00004000
#define PEDR_ED15	0x00008000

//
// PCFR Bits
//
#define PCFR_OPDE	0x00000001
#define PCFR_FP		0x00000002
#define PCFR_FS		0x00000004

//
// PGSR0 Bits
//
#define PGSR0_SS0	0x00000001
#define PGSR0_SS1	0x00000002
#define PGSR0_SS2	0x00000004
#define PGSR0_SS3	0x00000008
#define PGSR0_SS4	0x00000010
#define PGSR0_SS5	0x00000020
#define PGSR0_SS6	0x00000040
#define PGSR0_SS7	0x00000080
#define PGSR0_SS8	0x00000100
#define PGSR0_SS9	0x00000200
#define PGSR0_SS10	0x00000400
#define PGSR0_SS11	0x00000800
#define PGSR0_SS12	0x00001000
#define PGSR0_SS13	0x00002000
#define PGSR0_SS14	0x00004000
#define PGSR0_SS15	0x00008000
#define PGSR0_SS16	0x00010000
#define PGSR0_SS17	0x00020000
#define PGSR0_SS18	0x00040000
#define PGSR0_SS19	0x00080000
#define PGSR0_SS20	0x00100000
#define PGSR0_SS21	0x00200000
#define PGSR0_SS22	0x00400000
#define PGSR0_SS23	0x00800000
#define PGSR0_SS24	0x01000000
#define PGSR0_SS25	0x02000000
#define PGSR0_SS26	0x04000000
#define PGSR0_SS27	0x08000000
#define PGSR0_SS28	0x10000000
#define PGSR0_SS29	0x20000000
#define PGSR0_SS30	0x40000000
#define PGSR0_SS31	0x80000000

//
// PGSR1 Bits
//
#define PGSR1_SS32	0x00000001
#define PGSR1_SS33	0x00000002
#define PGSR1_SS34	0x00000004
#define PGSR1_SS35	0x00000008
#define PGSR1_SS36	0x00000010
#define PGSR1_SS37	0x00000020
#define PGSR1_SS38	0x00000040
#define PGSR1_SS39	0x00000080
#define PGSR1_SS40	0x00000100
#define PGSR1_SS41	0x00000200
#define PGSR1_SS42	0x00000400
#define PGSR1_SS43	0x00000800
#define PGSR1_SS44	0x00001000
#define PGSR1_SS45	0x00002000
#define PGSR1_SS46	0x00004000
#define PGSR1_SS47	0x00008000
#define PGSR1_SS48	0x00010000
#define PGSR1_SS49	0x00020000
#define PGSR1_SS50	0x00040000
#define PGSR1_SS51	0x00080000
#define PGSR1_SS52	0x00100000
#define PGSR1_SS53	0x00200000
#define PGSR1_SS54	0x00400000
#define PGSR1_SS55	0x00800000
#define PGSR1_SS56	0x01000000
#define PGSR1_SS57	0x02000000
#define PGSR1_SS58	0x04000000
#define PGSR1_SS59	0x08000000
#define PGSR1_SS60	0x10000000
#define PGSR1_SS61	0x20000000
#define PGSR1_SS62	0x40000000
#define PGSR1_SS63	0x80000000

//
// PGSR2 Bits
//
#define PGSR2_SS64	0x00000001
#define PGSR2_SS65	0x00000002
#define PGSR2_SS66	0x00000004
#define PGSR2_SS67	0x00000008
#define PGSR2_SS68	0x00000010
#define PGSR2_SS69	0x00000020
#define PGSR2_SS70	0x00000040
#define PGSR2_SS71	0x00000080
#define PGSR2_SS72	0x00000100
#define PGSR2_SS73	0x00000200
#define PGSR2_SS74	0x00000400
#define PGSR2_SS75	0x00000800
#define PGSR2_SS76	0x00001000
#define PGSR2_SS77	0x00002000
#define PGSR2_SS78	0x00004000
#define PGSR2_SS79	0x00008000
#define PGSR2_SS80	0x00010000
#define PGSR2_SS81	0x00020000
#define PGSR2_SS82	0x00040000
#define PGSR2_SS83	0x00080000
#define PGSR2_SS84	0x00100000

//
// RCSR Bits
//
#define RCSR_HWR	0x00000001
#define RCSR_WDR	0x00000002
#define RCSR_SMR	0x00000004
#define RCSR_GPR	0x00000008


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

#if __cplusplus
}
#endif

#endif 

⌨️ 快捷键说明

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