1. 2630,默认设置为PIN_IRQ_NEGEDGE,这应该是中断模式吧?
2.我设置为PIN_IRQ_DIS,按下按键就识别不了了,请问是不是还有哪里需要设置?
3.我想实现的是按键为查询模式,低电平有效,但是设置为PIN_IRQ_DIS,按键无法检测到
4.PIN_BM_IRQ这个是什么模式?
Board_KEY_LEFT | PIN_INPUT_EN | PIN_PULLUP | PIN_IRQ_NEGEDGE, Board_KEY_UP | PIN_INPUT_EN | PIN_PULLUP | PIN_IRQ_NEGEDGE, Board_KEY_DOWN | PIN_INPUT_EN | PIN_PULLUP |PIN_IRQ_NEGEDGE, #define PIN_IRQ_DIS (PIN_GEN|(0x0<<16)) ///< (*) Disable IRQ on pin #define PIN_IRQ_NEGEDGE (PIN_GEN|(0x5<<16)) ///< Enable IRQ on negative edge #define PIN_IRQ_POSEDGE (PIN_GEN|(0x6<<16)) ///< Enable IRQ on positive edge #define PIN_IRQ_BOTHEDGES (PIN_GEN|(0x7<<16)) ///< Enable IRQ on both edges #define PIN_BM_IRQ (0x7<<16) ///< Bitmask for pin interrupt option