>  gpio_ptr = (volatile unsigned int*)mmap(NULL,0x4000,
>(PROT_READ|PROT_WRITE),MAP_SHARED, mem_fd, 0x90040000);
>  /* now gpio_ptr points to a virtual mapping to physmem at 0x90040000 */
>
>  /* Setup the Various Needed Registers */
>  GPDR = gpio_ptr + 0x00000004;
>  GPSR = gpio_ptr + 0x00000008;
>  GPCR = gpio_ptr + 0x0000000C;

You need to either declare gpio_ptr as (char *) or divide those offsets by 
four. 

p.



_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to