?? exercise_1.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 + -