出现"main_nonBIOS.c", line 27: error: expected an expression这个错误不知道错在哪
void main(void)
{
/*** CPU Initialization ***/
InitSysCtrl(); //Initialize the CPU (FILE: SysCtrl.c)
DINT;
IER = 0x0000; // Disable CPU interrupts
IFR = 0x0000; // Clear all CPU interrupt flags
InitXintf(); //Initialize the external memory interface (FILE: Xintf.c)
//InitGpio(); // Initialize the shared GPIO pins (FILE: Gpio.c)
InitPieCtrl(); // Initialize and enable the PIE (FILE: PieCtrl.c)
InitEv(); // Initialize the EV(FILE: Ev.c)--And initialize the Timer1
InitCpuTimers();
// Initialize the time (FILE: DSP281x_CpuTimers.c)
[color=Teal]FFT(float DataR[ADSample],float DataI[ADSample]);
InitForFFT();
EALLOW; // This is needed to write to EALLOW protected registers
PieVectTable.TINT0 = &cpu_timer0_isr;//timer0中断服务子程序重定位
EDIS; // This is needed to disable write to EALLOW protected registers
IER |= M_INT1; // EV Interrupt
IFR &= 0x0000; //Clear all interrupt flag
// Enable TINT0 in the PIE: Group 1 interrupt 7
PieCtrlRegs.PIEIER1.bit.INTx7 = 1;
有颜色的那句话就是错误所在行 如果去掉括号里的东西 也报错说是too few arguments in function call
我在头文件中定义了这个函数
extern float sin_tab[ADSample],cos_tab[ADSample];
extern float fWaveR[ADSample],fWaveI[ADSample],w[ADSample];
extern void InitForFFT();
extern void FFT(float DataR[ADSample],float DataI[ADSample]); |