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

Function spiSetup

examples/spiSpeed.c:47–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46
47void spiSetup (int speed)
48{
49 if ((myFd = wiringPiSPISetup (SPI_CHAN, speed)) < 0)
50 {
51 fprintf (stderr, "Can't open the SPI bus: %s\n", strerror (errno)) ;
52 exit (EXIT_FAILURE) ;
53 }
54}
55
56
57int main (void)

Callers 1

mainFunction · 0.85

Calls 1

wiringPiSPISetupFunction · 0.85

Tested by

no test coverage detected