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.

AM335X GPIO 中断在linux kernel设置



专家好!

我在http://processors.wiki.ti.com/index.php/GPIO_Driver_Guide看到

中断类型的设置如下

  • Set IRQ type Raising/Falling/Level triggered
set_irq_type(irq_num, IRQ_TYPE_EDGE_RISING);
但我在linux kernel加入后发现编译不能通过,错误如下
error: implicit declaration of function 'set_irq_type'
 error: 'IRQ_TYPE_EDGE_RISING' undeclared (first use in this function)
另说明:
linux Kernel用的是SDK5.0.6中的,
头文件用的是:
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/err.h>
#include <linux/power_supply.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/gpio.h>

#include <mach/gpio.h>
#include <mach/irqs.h>