📄 corea_main.c
字号:
/************************************************************************
Copyright(c) 2005 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.
Please refer to the "readme" file for a description of this example.
*********************************************************************/
/*********************************************************************
Include files
*********************************************************************/
#include <services\services.h> // system services
#include "ezkitutilities.h"
#include "main.h"
// variable for synchronizing cores
extern testset_t adi_pwr_lockvar;
void main()
{
// enable core B to run (not necessary with VisualDSP debugger,
// but is necessary when booting from or executing out of external memory
*pSICA_SYSCR &= 0xFFDF;
// Initialize the power management module
ADI_PWR_COMMAND_PAIR pwrConfig[] = {
{ ADI_PWR_CMD_SET_EZKIT, (void*)ADI_PWR_EZKIT_BF561_600MHZ },
{ ADI_PWR_CMD_SET_AUTO_SYNC_ENABLED, NULL },
{ ADI_PWR_CMD_SET_SYNC_LOCK_VARIABLE, (void*)&adi_pwr_lockvar }, { ADI_PWR_CMD_END, 0}
};
ezErrorCheck(adi_pwr_Init(pwrConfig));
//adi_pwr_SetFreq(540000000,108000000,ADI_PWR_DF_NONE);
adi_pwr_SetFreq(0,0,ADI_PWR_DF_NONE);
while (1);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -