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

📄 exercise_1.c

📁 所用板ADSP-BF561 EZ-KIT Lite
💻 C
字号:
									//
//--------------------------------------------------------------------------//
#include <ccblkfn.h>
#include "exercise_1.h"

//--------------------------------------------------------------------------//
// Function:	main														//
//																			//
// Description:	After calling a few initalization routines, main() just 	//
//				waits in a loop forever.  The code to process the incoming  //
//				data can be placed in the function Process_Data() in the 	//
//				file "Process_Data.c".										//
//--------------------------------------------------------------------------//
void main(void)
{
	// initialize AD1836
	start_AD1836();
	
	// loop forever
	while(1) {
		idle();				// go asleep and wake up when external interrupt and ISR have been
							// processed
		if (cNewSample) {	// check whether new sample has been read by SPORT0 ISR
			cNewSample=0;	// reset flag
			process_data();	// do the sample processing
		}
	}
		
}

⌨️ 快捷键说明

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