Function gx_gpio_enable_trigger¶
-
int gx_gpio_enable_trigger(unsigned int gpio, GX_GPIO_TRIGGER_EDGE edge, GPIO_CALLBACK callback, void *pdata)
gpio 使能中断
- 参数
gpio -- gpio端口
edge -- 触发方式, 详细说明请参考 GX_GPIO_TRIGGER_EDGE
callback -- 中断回调函数
pdata -- 中断回调参数
- Returns 0
成功
- Returns -1
失败
- 返回
int gpio中断使能是否成功