cpu.h

来自「这是一个在ADS下编译通过的源码」· C头文件 代码 · 共 35 行

H
35
字号
/***************************************************************************\
	Copyright (c) 2004-2007 threewater@up-tech.com, All rights reserved.
	by threewter	2005.6.24
\***************************************************************************/
	

/***************************************************************************\
    #说明: s3c2410 寄存器定义
	----------------------------------  Bug  --------------------------------------

	----------------------------------  TODO list  --------------------------------------

	----------------------------------修正--------------------------------------
	2005-5-24	创建

\***************************************************************************/


#ifndef _CPU_S3C2410_H_
#define _CPU_S3C2410_H_

#define GET_PCLK	0
#define GET_HCLK	1

#define GET_MDIV(x)	FExtr(x, fPLL_MDIV)
#define GET_PDIV(x)	FExtr(x, fPLL_PDIV)
#define GET_SDIV(x)	FExtr(x, fPLL_SDIV)

unsigned long s3c2410_get_cpu_clk(void);
unsigned long s3c2410_get_bus_clk(int);
int s3c2410_cpu_init(void);

#endif /* _CPU_S3C2410_H_ */

⌨️ 快捷键说明

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