Hi, please do not use the patch anymore, it is obselete.... all code included in the patch is also available if you install the sdk directly from subversion repository.
http://acmesystems.it/?id=714 John Quoting og13270 <[EMAIL PROTECTED]>: > Hi, > About the gpiosyscall, Maybe your sdk (R2_01) doesn't integrate the > gpiosyscall. You have to patch it with the "phrozen" patch you can > find on acme web site (http://www.acmesystems.it/?id=140). > regards. > > --- In [email protected], "thomasz1982" <[EMAIL PROTECTED]> wrote: >> >> 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 >> > > >
