Skip to contentSkip to conversation

Is there wrong with io.h???

DISCUSSION rememberme_2000 1 participant 1 message Sep 19, 2006

lore
Share & tools
lore
#0 lore raw

hi:
i 'd written a simple program.and found some wrong with io.h.
the following code is:
that:
#include<asm/arch/gpio.h>
main()
{
omap_request_gpio(3);
omap_set_gpio_direction(3,1);
}
compile command :
arm-linux-gcc -I linux-2.6.13.4/include -c main.c
and then i got the following error information:
linux-2.6.13.4/include/asm/arch/io.h:91 error:parse error before "offset" linux-2.6.13.4/include/asm/arch/io.h:97 error:parse error before "offset" linux-2.6.13.4/include/asm/arch/io.h:102 error:parse error before "offset".
the toolchains which i used is gcc-3.4.1 for omap 5912,and the kernel is linux-2.6.13.4 for osk.
Is the file wrong? i'm not sure about it!!!!!!!
who has interest in it? i hope to get your help.

Quoted 2 lines

[email protected]
http://linux.omap.com/mailman/listinfo/linux-omap-open-source