clock_switching_driver.h

来自「ARM入门的好帮手.包含了从简单到相对较复杂的程序.」· C头文件 代码 · 共 46 行

H
46
字号
//*----------------------------------------------------------------------------
//*      ATMEL Microcontroller Software Support  -  ROUSSET  -
//*----------------------------------------------------------------------------
//* The software is delivered "AS IS" without warranty or condition of any
//* kind, either express, implied or statutory. This includes without
//* limitation any warranty or condition with respect to merchantability or
//* fitness for any particular purpose, or against the infringements of
//* intellectual property rights of others.
//*----------------------------------------------------------------------------
//* File Name           : clock_switching_driver.h
//* Object              :
//*                        Prototyping File.
//* 1.0 17/10/01 S.C    : Creation
//*----------------------------------------------------------------------------

#ifndef clock_switching_driver_h
#define clock_switching_driver_h

//*-----------------------------------------------------------------------------
//* ------------------------- General constant definition ----------------------
//*-----------------------------------------------------------------------------
#define		TO_LF_OSCILLATOR	0x0		/* The target frequency source is the low frequency oscillator */
#define		TO_HF_OSCILLATOR	0x1		/* The target frequency source is the main oscillator */
#define		TO_PLL_OUTPUT		0x2		/* The target frequency source is the PLL output */

#define		CSS_MASK			0x80	/* All field are masked except CSS */
#define 	MAX_MUL				0x3f00	/* Maximum for the Multiplier field definition */

//*-----------------------------------------------------------------------------
//* --------------------- End of General constant definition -------------------
//*-----------------------------------------------------------------------------

//*-----------------------------------------------------------------------------
//* ------------------------- Preprocessing  -----------------------------------
//*-----------------------------------------------------------------------------

//*-----------------------------------------------------------------------------
//* ------------------------- End of Preprocessing  ----------------------------
//*-----------------------------------------------------------------------------

/* General Function Prototyping */

extern void mck_clock_speed (short source , u_int frequency_multiplier, u_int pres) ;

#endif  /* clock_switching_driver_h */

⌨️ 快捷键说明

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