📄 pll.c
字号:
/*******************************************************************
Analog Devices, Inc. All Rights Reserved.
This software is proprietary and confidential. By using this software
you agree to the terms of the associated Analog Devices License Agreement.
Project Name: Power_On_Self_Test
Hardware: ADSP-BF518F EZ-Board
Description: This examples configures the PLL on the EZ-Board.
*******************************************************************/
#include <cdefBF518.h>
#include <ccblkfn.h>
#include <bfrom.h>
#include "pll.h"
/*******************************************************************
* Function: Init_PLL
* Description: initializes the PLL registers
*******************************************************************/
void Init_PLL(void)
{
u32 SIC_IWR1_reg; /* backup SIC_IWR1 register */
/* use Blackfin ROM SysControl() to change the PLL */
ADI_SYSCTRL_VALUES sys_cntrl_struct;
sys_cntrl_struct.uwPllCtl = 0x2000; /* (25MHz CLKIN x (MSEL=16))::CCLK = 400MHz */
sys_cntrl_struct.uwPllDiv = 0x0005; /* (400MHz/(SSEL=5))::SCLK = 80MHz */
SIC_IWR1_reg = *pSIC_IWR1; /* save SIC_IWR1 due to anomaly 05-00-0432 */
*pSIC_IWR1 = 0; /* disable wakeups from SIC_IWR1 */
bfrom_SysControl( SYSCTRL_WRITE | SYSCTRL_PLLCTL | SYSCTRL_PLLDIV,
&sys_cntrl_struct, NULL);
*pSIC_IWR1 = SIC_IWR1_reg; /* restore SIC_IWR1 due to anomaly 05-00-0432 */
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -