📄 dm_bf54x_tools.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-BF548 EZ-KIT Lite
Description: This examples performs POST on the BF548 EZ-Kit Lite
*******************************************************************/
#include <cdefBF548.h>
#include <ccblkfn.h>
/*******************************************************************
* Function: Init_PLL
* Description: initializes the PLL registers
*******************************************************************/
void Init_PLL(void)
{
*pSIC_IWR0 |= 0x1; // enable PLL wakeup
*pPLL_CTL = SET_MSEL(15); /* (27MHz Xtal x (MSEL=15))::CCLK=405MHz */
ssync();
*pPLL_DIV = SET_SSEL(3); /* (405MHz/(SSEL=3))::SCLK=135MHz */
ssync();
*pVR_CTL = 0x40FB;
ssync();
idle();
}
//--------------------------------------------------------------------------//
// Function: InitDDR
//
// Parameters: None
//
// Return: None
//
// Description: Initialize DDR
//--------------------------------------------------------------------------//
void Init_DDR(void)
{
// release the DDR controller from reset as per spec
*pEBIU_RSTCTL |= 0x0001;
ssync();
*pEBIU_AMGCTL = 0x0009;
*pEBIU_DDRCTL0 = 0x218A8411L;
*pEBIU_DDRCTL1 = 0x100e2222L;
*pEBIU_DDRCTL2 = 0x00000021L;
asm("SSYNC;");
}
void Init_EBIU(void)
{
*pEBIU_AMBCTL0 = 0x7bb07bb0;
*pEBIU_AMBCTL1 = 0x7bb07bb0;
*pEBIU_AMGCTL = 0x000f;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -