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.

28069中断矢量初始化错误



同样的一条语句:

将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);

请各位给予帮助,谢谢!

  • 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

    直接这样定义就行了啊