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.

[参考译文] TMS320F28069:PIE_enableExtInt 中的中断 XINT3错误

Guru**** 2530350 points
Other Parts Discussed in Thread: MOTORWARE

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/603622/tms320f28069-bug-for-interrupt-xint3-in-pie_enableextint

器件型号:TMS320F28069
主题中讨论的其他器件:MOTORWARE

当尝试弄清楚如何使用中断管理多个从器件 SPI 时、我可能在 motorware 库中发现了一个错误

XINT3的索引= 11而不是10:

pie.h
------------------------------------------------------------------
//组1 PIE 中断
易失性 PI_IntVec_t ADCINT1_HP;//!< ADC 高优先级中断

易失性 PI_IntVec_t ADCINT2_HP;//!< ADC 高优先级中断
volatile PI_IntVec_t rsvd1_3;//!<保留
易失性 PI_IntVec_t XINT1;//!< XINT1中断矢量
易失性 PI_IntVec_t XINT2;//!< XINT2中断向量
(笑声)

//组12中断
易失性 PI_IntVec_t XINT3;//!< XINT3中断矢量

PIE.c
------------------------------------------------------------------
void PI_enableExtInt (PI_Handle 压电式处理、const CPU_ExtIntNumber_e intNumber)


PIE_Obj * PIE =(PIE_Obj *)压电式;
uint16_t 索引;
uint16_t setValue;


if (intNumber < CPU_ExtIntNumber_3)

索引= 0;
SetValue = 1 <<(intNumber + 3);

其他

索引= 10; >>我认为这应该是11
SetValue = 1 << 0;

仅发布以实现完整性。

BR、
Tomas

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    是的、您回答正确。 感谢您的关注、我会将其归档为一个错误、以便在未来的版本中进行修改。

    肖恩