想使用GPIO1【0】做中断,现在的问题是在配置引脚中断条件时,对寄存器SET_RIS_TRIG01的对应位置置一时,CLR_RIS_TRIG01的对应位置也会跟着置一。这是为啥呢?
使用的是startware的库。代码很简单:先开GPIO电源,然后引脚复用设置,然后就是设置中断触发电位变化,就这这里遇到了如上的问题。
搞了好几天了,没弄明白。求指导。
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.