I'm trying to program ADSP-BF609 EZBRD for simple GPIO interface. I have loaded "uImage-bf609-ezkit-2014R1-RC1" and booting from SD card. I'm using tool chains "blackfin-toolchain-uclibc-default-2014R1-RC2.x86" for compiling the code.
But when I'm trying to compile the code no header files are linking and error bin_gpio_request is undefined is coming.
I'm trying to compile the code on host and load it to the board via tftp and just run the binary file on the board.
Is this the right method to access the GPIO's or should I use sysfs method and access though files. Is the tool chain correct. Is there any user manual for all the kernel. I'm new to Linux programming and Blackfin, sorry if my doubt is too basic.
I'm attaching the code with this post. I'm stuck in this for too long, appreciate any help.