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

Function wiringPiSetupPinType

wiringPi/wiringPi.c:3691–3700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3689}
3690
3691int wiringPiSetupPinType (enum WPIPinType pinType) {
3692 if (wiringPiDebug)
3693 printf ("wiringPi: wiringPiSetupPinType(%d) called\n", (int) pinType) ;
3694 switch (pinType) {
3695 case WPI_PIN_BCM: return wiringPiSetupGpio();
3696 case WPI_PIN_WPI: return wiringPiSetup();
3697 case WPI_PIN_PHYS: return wiringPiSetupPhys();
3698 default: return -1;
3699 }
3700}
3701
3702
3703int wiringPiSetupGpioDevice (enum WPIPinType pinType) {

Callers 1

mainFunction · 0.85

Calls 3

wiringPiSetupGpioFunction · 0.85
wiringPiSetupFunction · 0.85
wiringPiSetupPhysFunction · 0.85

Tested by 1

mainFunction · 0.68