Hello all,

I have a problem setting the IO lines of portB.
When I tried to set it with the old code 

#define PBITS16_23 0xff0000

// Set port G bits 16-23 as output.
mask = (PBITS16_23);
ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_SETGET_OUTPUT), &mask);

which is working with portG, there is no way to set the bits of portB
to outputs.

I also tried to compile the gpiosyscalls.c which is not working with
my sdk.

That are the errors when I want to compile.
In file included from gpiosyscalls.c:8:
/home/thomas/fox/devboard-R2_01/target/cris-axis-linux-gnu/include/linux/gpio_syscalls.h:
In
   function `void gpiosetbits(unsigned char, unsigned int)':
/home/thomas/fox/devboard-R2_01/target/cris-axis-linux-gnu/include/linux/gpio_syscalls.h:69:
`
   __NR_gpiosetbits' undeclared (first use this function)
/home/thomas/fox/devboard-R2_01/target/cris-axis-linux-gnu/include/linux/gpio_syscalls.h:69:
(Each
   undeclared identifier is reported only once for each function it
appears
   in.)
/home/thomas/fox/devboard-R2_01/target/cris-axis-linux-gnu/include/linux/gpio_syscalls.h:
In
   function `void gpioclearbits(unsigned char, unsigned int)':
/home/thomas/fox/devboard-R2_01/target/cris-axis-linux-gnu/include/linux/gpio_syscalls.h:70:
`
   __NR_gpioclearbits' undeclared (first use this function)
/home/thomas/fox/devboard-R2_01/target/cris-axis-linux-gnu/include/linux/gpio_syscalls.h:
In
   function `void gpiosetdir(unsigned char, unsigned char, unsigned int)':
/home/thomas/fox/devboard-R2_01/target/cris-axis-linux-gnu/include/linux/gpio_syscalls.h:71:
`
   __NR_gpiosetdir' undeclared (first use this function)
/home/thomas/fox/devboard-R2_01/target/cris-axis-linux-gnu/include/linux/gpio_syscalls.h:
In
   function `void gpiotogglebit(unsigned char, unsigned int)':
/home/thomas/fox/devboard-R2_01/target/cris-axis-linux-gnu/include/linux/gpio_syscalls.h:72:
`
   __NR_gpiotogglebit' undeclared (first use this function)
/home/thomas/fox/devboard-R2_01/target/cris-axis-linux-gnu/include/linux/gpio_syscalls.h:
In
   function `unsigned int gpiogetbits(unsigned char, unsigned int)':
/home/thomas/fox/devboard-R2_01/target/cris-axis-linux-gnu/include/linux/gpio_syscalls.h:73:
`
   __NR_gpiogetbits' undeclared (first use this function)


PLEASE HELP ME!!
THX

Reply via email to