Home/Support/Support Forum/Module gpio.c (please LeonidM)
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Module gpio.c (please LeonidM)

0 votes
Hello again. I already used the gpio.c module, which in my case the function is "ns9xxx_gpio_irq_handler" but I get many errors "no such file or directory" of libraries "# include <linux/module.h>" " # include <linux/init.h> "," # include <asm/arch/irqs.h> "and many more and errors as " error: 'GPIO_CFG_FUNC_2' undeclared here (not in a function)". I'm reading the book LINUX DEVICE DRIVERS and places that you must have a current version of kernel (I have the 2.26). Do you think that it can be the version of the Kernel the problem that to compile that give me so many errors?

Thank you very much LeonidM.
asked Feb 26, 2010 in Linux by anagil New to the Community (2 points)
recategorized Dec 3, 2013 by tuxembb

Please log in or register to answer this question.

1 Answer

0 votes
Are you using DEL? What version? Create a new Uboot/Kernel/rootfs project ,go to kernel configuration screen and add gpio_test application. It will also add a gpio module for you. Do not change anything else. Build the kernel and rootfs, install, load. It will compile with no errors. Follow instructions in online help to create nodes for GPIOs in example, load gpio module and run gpio_test example. It runs fine, i've done it myself. Once al this is working for you you can start making changes to the example and the module.
answered Feb 26, 2010 by LeonidM Veteran of the Digi Community (4,445 points)