Hi,
Today I've been fiddling with controlling the gpio directly through their registers using /dev/mem and mmap. Reading some of wiringPi's source code, I noticed that the locations of the registers in /dev/mem relative to the base location are different than they are in physical memory. for example, in physical memory, the location of GPIOFS1 is 4 places higher than the base, while in /dev/mem it is only 1 higher. I am able to get my code to work using the register increments from wiringPi, but still don't understand why this happens. What am I missing?
