| 45 | |
| 46 | |
| 47 | void 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 | |
| 57 | int main (void) |
no test coverage detected