⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.c

📁 analog device vdsp dynamic power control tutorial
💻 C
字号:
/********************************************************************************
 *												      							*
 *	(C) Copyright 2003 - Analog Devices, Inc.  All rights reserved.				*
 *												      							*
 *	Project Name:	BF561_Regulator								      				*
 *												      							*
 *	Date Modified:	11/24/03	JB	Ver 0.0		First draft of this example.	*
 *                                                                              *
 *	Software:	VisualDSP++ 3.5 	                                            *
 *                                                                              *
 *	Hardware:		                                                            *
 *                                                                              *
 *	Connections:	                                                            *
 *                                                                              *
 *	Purpose:		                                                            *
 *					                                                            *
 ********************************************************************************/

#include "..\BF561_Regulator.h"

main()
{
   volatile int delay=0x800000;
	
   *pSICA_SYSCR &= 0xFFDF; // clear bit 5 to unlock Core B

   Setup_Flags();			// setup EZKIT switches as interrupt-generating inputs
   Setup_Interrupts();		// assign and enable interrupts
   
   while(1)
   {
   		while (delay--);
			
		if (*pFIO2_FLAG_D & 0xF0)
			*pFIO2_FLAG_D &= 0xFF0F;	// if LED17-20 are lit, unlight
		else
			*pFIO2_FLAG_D |= 0x00F0;	// Otherwise, Light LED17-20
		
		delay = 0x800000;
   } // end while infinite
} // end main

⌨️ 快捷键说明

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