From: Dave H. <dhy...@gm...> - 2008-03-10 06:45:25
|
Hi Pablo, > make[1]: se ingresa al directorio > `/home/pablo/gumstix-buildroot/build_arm_nofpu/linux-2.6.21gum' > CC [M] /home/pablo/gpio-ex/gpio_example.o > /home/pablo/gpio-ex/gpio_example.c: In function 'gpio_example_register_irq': > > /home/pablo/gpio-ex/gpio_example.c:144: warning: implicit declaration of > function 'set_irq_type' > /home/pablo/gpio-ex/gpio_example.c:144: error: 'IRQ_TYPE_EDGE_RISING' > undeclared (first use in this function) > /home/pablo/gpio-ex/gpio_example.c:144: error: (Each undeclared identifier > is reported only once > /home/pablo/gpio-ex/gpio_example.c:144: error: for each function it appears > in.) > /home/pablo/gpio-ex/gpio_example.c:148: warning: passing argument 2 of > 'request_irq' from incompatible pointer type > make[2]: *** [/home/pablo/gpio-ex/gpio_example.o] Error 1 > make[1]: *** [_module_/home/pablo/gpio-ex] Error 2 > make[1]: se sale del directorio > `/home/pablo/gumstix-buildroot/build_arm_nofpu/linux-2.6.21gum' > make: *** [kernel-module] Error 2 > I'm sending you the code. > It would be great if you can compile it. These errors are caused because the function set_irq_type and IRQ_TYPE_RISING_EDGE are no longer supported under the recent kernels. You should take a look at a newer version of gpio-event. You'll notice that there are a bunch of different tarballs on this page: <http://docswiki.gumstix.com/GPIO_event> If you look at the differences between each one, you'll see some of the changes required for each specific kernel version. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |