Hi,
I am going through example code in DSP2833x_PieVect.c for PIE vector table initialization from below path
c:\tidcs\c28\DSP2833x\v131\DSP2833x_common\source\DSP2833x_PieVect.c
In this code example vector table is copied from "PieVectTableInit" to "PieVectTable". Where "PieVectTable" is memory mapped using
#ifdef __cplusplus
My query is whether I can directly map the register "PieVectTableInit" to "PieVectTableFile" as shown below #ifdef __cplusplus This will reduce my memory consumption. Finally before enabling interrupts I will keep the below line of code to enable PIE vector table. // Enable the PIE Vector Table
Please let me know your comments. Thanks & Regards
#pragma DATA_SECTION("PieVectTableFile")
#else
#pragma DATA_SECTION(PieVectTable,"PieVectTableFile");
#endif
struct PIE_VECT_TABLE PieVectTable;
#pragma DATA_SECTION("PieVectTableFile")
#else
#pragma DATA_SECTION(PieVectTable,"PieVectTableFile");
#endif
struct PIE_VECT_TABLE PieVectTableInit;
PieCtrlRegs.PIECTRL.bit.ENPIE = 1;
Vishnu Beema