Angelo
我们发现用AON GPIO中断方式在SDK里面只有四种模式:
APP_IO_MODE_IT_RISING, /**< Interrupt Mode with Rising edge trigger detection. */
APP_IO_MODE_IT_FALLING, /**< Interrupt Mode with Falling edge trigger detection. */
APP_IO_MODE_IT_HIGH, /**< Interrupt Mode with High-level trigger detection. */
APP_IO_MODE_IT_LOW, /**< Interrupt Mode with Low-level trigger detection. */
但是没有一种toggle(也就是只要反转)的模式,不知道是不是芯片不支持呢?按道理这是基本功能才对。
多谢!
Ping
1. 参考<GR551x Datasheet> 10.2.4.9章节说明,GR551X GPIO只支持高电平/低电平/上升沿/下降沿四种中断检测方式,不支持toggle模式;
2. SDK中支持GPIO Toggle输出,API函数如下:
打开微信,使用“扫一扫”即可关注