📄 main.c
字号:
#include <msp430x14x.h>
#include <math.h>
#include "init.h"
#include "pulse_caculate.c"
#include "fft_caculate.c"
#include "fft.c"
#include "fft_AD.c"
#include "output.c"
#include "LCM141-KEY.c"
#include "uart.c"
void main()
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
///////////////////////////////////////
//CLOCK_Init();
// UART_Init();
//FLASH_Init();
Display_Init();
// Key_Init();
///////////////////////////////////////
// _EINT();
/*
while(1)
{
// P6DIR|=BIT6;
// P6SEL&=~BIT6;
// P6OUT&=~BIT6;
if(f<=95)
{
if(caculate_flag==1)
{
excaculate_flag=1;
}
caculate_flag=0;
}
else if(f>=100)
{
caculate_flag=1;
}
///////////////////////////////////////
if(caculate_flag==0)
{
if(excaculate_flag==1)
{
FFT_AD();
excaculate_flag=0;
}
f=FFT_caculate();
}
else if(caculate_flag==1)
{
f=FFT_caculate();
}
// P6OUT|=BIT6;
Q=f/Meter_coeffient;
QL+=Q;
///////////////////////////////////////
// Pulse_output(f);
// Switching_Display();
// DA_output(f);
///////////////////////////////////////
while(KeyFlag==1)
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
KeyFlag=0;
Key_act();
}
// LPM1;
}
*/
Switching_Display();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -