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.

[参考译文] MSP432P401R:MAP_UART_getEnabledInterruptStatus屏蔽了UCTXCPTIFG

Guru**** 2610155 points


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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/662517/msp432p401r-map_uart_getenabledinterruptstatus-masks-out-uctxcptifg

部件号:MSP432P401R

您好,

 MAP_UART_getEnabledInterruptStatus驱动程序API出现问题。 它始终屏蔽 UCTXCPTIFG位。

在我的UART ISR中,我必须替换这一行:

UINT32_t status = MAP_UART_getEnabableInterruptStatus(EUSI_A2_base);

使用:
UINT32_t状态= UCA2IFG & UCA2IE;

获取EUSCI_A_UART_Transmit_Complete_InterrupT_flag 位集。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    Jeffrey,
    感谢您注意到这一点。 在查看代码时,我发现传输完成中断不包括在API检查的中断中。 我已经提交了一个票据,以便在下一个可用的SDK更新中将其添加到UART_getEnabledInterruptStatus() API。
    此致,
    Bob L.