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.

GPIO中断处理函数如何判断是哪个引脚引起的中断



如图,上半部分是初始化函数, 已经指定中断处理函数。

我的问题有三个:

1、我使能了PA.567三个引脚的中断, 如何判断是哪个引起的。

2、例如PA.6是双边沿产生中断, 如何判断本次中断是上升沿还是下降沿。

3、图中我试图读取PA.7的中断原因, TYPE的值是0x00, 对应下降沿,这个要如何理解?如果是由别的引脚引起的,这个值读出来应该怎么判断。