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

Function FailOnModel5

wiringPi/wiringPi.c:705–711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

703#define RETURN_ON_MODEL5 if (piRP1Model()) { if (wiringPiDebug) printf("Function not supported on Pi5\n"); return; }
704
705int FailOnModel5(const char *function) {
706 if (piRP1Model()) {
707 return wiringPiFailure (WPI_ALMOST, "Function '%s' not supported on Raspberry Pi 5.\n"
708 " Unable to continue. Keep an eye of new versions at https://github.com/wiringpi/wiringpi\n", function) ;
709 }
710 return 0;
711}
712
713// gpioToGPFSEL:
714// Map a BCM_GPIO pin to it's Function Selection

Callers 5

gpioClockSetFunction · 0.85
digitalWriteByteFunction · 0.85
digitalReadByteFunction · 0.85
digitalWriteByte2Function · 0.85
digitalReadByte2Function · 0.85

Calls 2

piRP1ModelFunction · 0.85
wiringPiFailureFunction · 0.85

Tested by

no test coverage detected