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.

[参考译文] CC3220MOD:GPIO clearInt

Guru**** 2555890 points


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

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/642771/cc3220mod-gpio-clearint

器件型号:CC3220MOD

大家好! )

在 SDK 示例中的"platform.c"文件中、我可以看到以下代码片段:

void Platform_Init()
{
/*启用开关2*/
GPIO_setCallback (Board_BUTTON0、(GPIO_CallbackFxn) Platform_gpioButtonFxn0);

/*启用中断*/
GPIO_enableInt (Board_BUTTON0);

}

//*********
//
//! 简要
//
////*********
void Platform_gpioButtonFxn0 (unsigned int index)
{
//uart_print ("***** 按下 OTA 开关-运行 OTA 过程***** \r\n");
//notifyOtaCommandArrived();

GPIO_clearInt (Board_BUTTON0);
} 

这是否意味着主机负责清除中断?  

谢谢!

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

    在"GPIO_setCallback"说明中找到了"gpio.h"中的答案:

    *注意:无需在回调中调用 GPIO_clearInt()。
    *该操作在调用回调之前在内部执行。 

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

    是的、主机清除中断。

    Shlomi