v-hub"; reg = <0x0>; interrupt-parent = <&gpio>; interrupts = <5 2>; /* IRQ_TYPE_EDGE_FALLING */ reset-gpios = <&gpio 25 1>; // GPIO_ACTIVE_HIGH max-ports =
set_irq_type(irq_num, IRQ_TYPE_EDGE_RISING); 这个函数的时候, 报错如下:arch/arm/mach-omap2/board-am335xevm.c:400:3: error: implicit declaration of function ‘irq_set_irq_type’ [-Werror=implicit-function-declaration] 请问我该包含哪个头文件?我没有搜索出这个函数的位置。求助!!
Elixir Cross Referencer - IRQ_TYPE_EDGE_RISING identifier references search for Linux v4.10-rc2. Defined as a macro in include/dt-bindings/interrupt-controller/irq.h. Defined as a enumerator in include/linux/irq.h.
IRQ_TYPE_NONE=0x00000000, IRQ_TYPE_EDGE_RISING=0x00000001, IRQ_TYPE_EDGE_FALLING=0x00000002, IRQ_TYPE_EDGE_BOTH= (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING), IRQ_TYPE_LEVEL_HIGH=0x00000004, IRQ_TYPE_LEVEL_LOW=0x00000008, IRQ_TYPE_LEVEL_MASK= (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_LEVEL_...
#define IRQ_TYPE_EDGE_RISING 0x00000001 /* Edge rising type */ //上升沿触发 #define IRQ_TYPE_EDGE_FALLING 0x00000002 /* Edge falling type */ //下降沿触发 #define IRQ_TYPE_EDGE_BOTH (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING) //边沿触发 ...
ret = request_irq(wl->irq, wl1271_irq,0, DRIVER_NAME, wl);if(ret <0) { wl1271_error("request_irq() failed: %d", ret);gotoout_free; }set_irq_type(wl->irq, IRQ_TYPE_EDGE_RISING); disable_irq(wl->irq); ret = wl1271_init_ieee80211(wl);if...
irq_set_irq_type(gpio_to_irq(p54spi_gpio_irq), IRQ_TYPE_EDGE_RISING); disable_irq(gpio_to_irq(p54spi_gpio_irq)); INIT_WORK(&priv->work, p54spi_work); init_completion(&priv->fw_comp); INIT_LIST_HEAD(&priv->tx_pending);
#define IRQ_TYPE_EDGE_RISING 0x00000001 /* Edge rising type */ //上升沿触发 #define IRQ_TYPE_EDGE_FALLING 0x00000002 /* Edge falling type */ //下降沿触发 #define IRQ_TYPE_EDGE_BOTH (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING) //边沿触发 ...
reg += OMAP_MPUIO_GPIO_INT_EDGE; l = __raw_readl(reg); - if (trigger & IRQ_TYPE_EDGE_BOTH) + if ((trigger & IRQ_TYPE_SENSE_MASK) == IRQ_TYPE_EDGE_BOTH) bank->toggle_mask |= 1 << gpio; if (trigger & IRQ_TYPE_EDGE_RISING) ...
mode = NX_ALIVE_DETECTMODE_SYNC_RISINGEDGE; break; case IRQ_TYPE_EDGE_BOTH: mode = NX_ALIVE_DETECTMODE_SYNC_FALLINGEDGE; break; /* and Rising Edge */ case IRQ_TYPE_LEVEL_LOW: mode = NX_ALIVE_DETECTMODE_ASYNC_LOWLEVEL; break; case IRQ_TYPE_LEVEL_HIGH: mode = NX_ALIVE_DETECTMODE_...