Fixing a few issues - makefile goofs.
Also adding in the stuff for /dev/gpiomem with warnings and information in the gpio manual page (who reads that though!)
This commit is contained in:
@@ -1223,7 +1223,10 @@ int main (int argc, char *argv [])
|
||||
printf (" Device tree is enabled.\n") ;
|
||||
|
||||
if (stat ("/dev/gpiomem", &statBuf) == 0) // User level GPIO is GO
|
||||
{
|
||||
printf (" This Raspberry Pi supports user-level GPIO access.\n") ;
|
||||
printf (" -> See the man-page for more details\n") ;
|
||||
}
|
||||
else
|
||||
printf (" * Root or sudo required for GPIO access.\n") ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user