pxa255_clk.h
来自「老外的一个开源项目」· C头文件 代码 · 共 89 行
H
89 行
// 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_clk.h
//
// Defines the clock/timer register layout and associated types and constants.
//
//------------------------------------------------------------------------------
#ifndef _PXA255_CLK_H_
#define _PXA255_CLK_H_
#if __cplusplus
extern "C" {
#endif
//------------------------------------------------------------------------------
//
// Type: CLK_REG_T
//
// Defines the clock/timer control register layout.
//
//------------------------------------------------------------------------------
typedef struct
{
VUINT32_T CCCR; //Core Clock Configuration Register
VUINT32_T CKEN; //Clock Enable Register
VUINT32_T OSCC; //Oscillator Configuration Register
} CLK_REG_T, *PCLK_REG_T;
//
// Core Clock Configuration Register (CCCR) Bits
//
#define CCCR_L (0x1fu << 0)
#define CCCR_M (0x3u << 5)
#define CCCR_N (0x7u << 7)
#define CCCR_RESERVED_BITS (0xFFFFFC00)
#define CCCR_L27 (0x01) // L=X27
#define CCCR_M1 (0x1 << 5) // M=X1
#define CCCR_M2 (0x2 << 5) // M=X2
#define CCCR_M4 (0x3 << 5) // M=X4
#define CCCR_N10 (0x2 << 7) // N=X1.0
#define CCCR_N15 (0x3 << 7) // N=X1.5
#define CCCR_N20 (0x4 << 7) // N=X2.0
#define CCCR_N30 (0x6 << 7) // N=X3.0
//
// Clock Enable Register (CKEN) Bits
//
#define CKEN_PWM0 0x00000001
#define CKEN_PWM1 0x00000002
#define CKEN_AC97 0x00000004
#define CKEN_SSP 0x00000008
#define CKEN_HWUART 0x00000010
#define CKEN_STUART 0x00000020
#define CKEN_FFUART 0x00000040
#define CKEN_BTUART 0x00000080
#define CKEN_I2S 0x00000100
#define CKEN_NSSP 0x00000200
#define CKEN_USB 0x00000800
#define CKEN_MMC 0x00001000
#define CKEN_FICP 0x00002000
#define CKEN_I2C 0x00004000
#define CKEN_LCD 0x00010000
//
// Oscillator Configuration Register (OSCC) Bits
//
#define OSCC_OOK 0x00000001
#define OSCC_OON 0x00000002
//------------------------------------------------------------------------------
#if __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?