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.

[参考译文] CCS/MSP432P401R:使用driverlib函数的中断优先级

Guru**** 2614205 points


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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/663904/ccs-msp432p401r-interrupt-priority-using-driverlib-functions

部件号:MSP432P401R

工具/软件:Code Composer Studio

我正在使用MSP401R红色启动板Rev 2.1

我的代码使用各种中断,我想使用以下代码段确认中断优先级。 但是,所有返回的优先级为'0'。 这是否意味着所有外设中断都分配了

是否具有相同的优先级?

uINT8_t tst1,tst2,tst3,tst4,tst5;

tst1 = Interrupt_getPriority (INT_Port1);
tst2 = Interrupt_getPriority (INT_port2);
tst3 = Interrupt_getPriority (INT_PORT5);
tst4 = Interrupt_getPriority (INT_ADC14);
tst5 = Interrupt_getPriority (INT_EUSCIA2);

如果是这种情况,我如何更改这些级别,使'INT_port2'具有最高优先级,然后依次为INT_ADC14和INT_EUSCIA2。

谢谢

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

    David,

     是否使用MAP_Interrupt_setPriority (<Peripheral>,<value>)最初设置优先级?

    如果没有,请查看 TI资源管理器上的INTERRUPT _Changing_Priorities示例。

    此致,

     Bob L.

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    Bob,您好!
    谢谢。 这解决了我的问题。