📄 main.c
字号:
#include <math.h>
#include <stdio.h>
#include "d:\\code\\JXXY_DRIVER\\mmdrv.h"
#include "d:\\code\\JXXY_DRIVER\\cpu_reg.h"
#include "d:\\code\\JXXY_DRIVER\\lcd_86.h"
#define FFTSIZE 32
void main()
{
#if 1
int fftPdata[FFTSIZE];
int fftdata[FFTSIZE*2]={
100,100,
200,200,
1756,8005,
4005,3005,
5723,466,
865,657,
700,809,
886,924,
978,1023,
1023,211,
1321,122,
1132,1233,
133,124,
154,715,
195,716,
916,417,
9017,2218,
9818,3419,
6519,3220,
2230,221,
2135,2382,
222,213,
123,2424,
244,525,
285,-26,
226,257,
267,2428,
218,249,
249,320,
3045,131,
312,342,
321,323,};
SWWSR = 0x7fff;
SWCR = 0x0001;
BSCR = 0x8006;
CLKMD = PLL_DIV_INIT;
waitloop( 0x0400 );
CLKMD = PLL_LOCK_INIT_X(9);
waitloop( 0x0400 );
init_lcd();
LCD_clear(0);
cur_row=1;
cur_col=15;
LCD_pr_chars(" FFT TEST ",17);
cur_row=2;
cur_col=1;
LCD_pr_chars("========================",23);
Close_LED_Data();
Close_LED_Traf();
Close_LED_sign();
MFFT(fftdata,fftPdata);
while(1)
{
}
#endif
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -