MCPcopy Create free account
hub / github.com/WiringPi/WiringPi / wiringPiUserLevelAccess

Function wiringPiUserLevelAccess

wiringPi/wiringPi.c:3319–3330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3317
3318
3319int wiringPiUserLevelAccess(void)
3320{
3321 struct stat statBuf ;
3322 const char* gpiomemModule = gpiomem_BCM;
3323
3324 piBoard();
3325 if (piRP1Model()) {
3326 gpiomemModule = gpiomem_RP1;
3327 }
3328
3329 return stat(gpiomemModule, &statBuf) == 0 ? 1 : 0;
3330}
3331
3332
3333int CheckPCIeFileContent(const char* pcieaddress, const char* filename, const char* content) {

Callers 1

doVersionFunction · 0.85

Calls 3

piBoardFunction · 0.85
piRP1ModelFunction · 0.85
statClass · 0.70

Tested by

no test coverage detected