memory mapping using /dev/mem versus /dev/gpiomem ?
Per doc /dev/mem usage requires "root" "privileges.
Also per doc /dev/gpiomem no "root privileges " are necessary since "Linux will take care of privileges".
I am not sure my complier is smart enough to stop me from opening the /dev/mem if my app has no root privileges. My app does not fully run so at this point I do not know that.
For now I can open both /dev/mem and /dev/gpiomem.
Since it appears that I can use both , therefore my question to the forum is
which /dev is more appropriate to use to access RPi hardware.
|