同样的一条语句:
将HVACI_Scalar 从28035移植到28069时,出现以下问题:
PINT *Dest = &PieVectTable.TINT1;
在28035下编译通过,在28069下编译时出现错误:
#145 a value of type "volatile PINT *" cannot be used to initialize an entity of type "PINT *"
28035 和28069 对PINT定义:
typedef interrupt void(*PINT)(void);
请各位给予帮助,谢谢!
mangui zhang:
EALLOW; // This is needed to write to EALLOW protected registers PieVectTable.XINT1 = &xint1_isr; PieVectTable.XINT2 = &xint2_isr; EDIS; // This is needed to disable write to EALLOW protected registers
直接这样定义就行了啊
TI中文支持网



