This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
在DSP2833x_PieVect.c中
void InitPieVectTable(void)
{
int16 i;
Uint32 *Source = (void *) &PieVectTableInit;
Uint32 *Dest = (void *) &PieVectTable;
EALLOW;
for(i=0; i < 128; i++)
*Dest++ = *Source++;
EDIS;
// Enable the PIE Vector Table
PieCtrl.PIECRTL.bit.ENPIE = 1;
}
Uint32 *Source = (void *)&PieVectTableInit
此句的强制指针转换,在单独的VC编译下显示是错误的:
error: invalid conversion from `void*' to `int*'
为什么在这个地方可以正确使用?