New timing methods

This commit is contained in:
Gordon Drogon
2012-08-17 10:16:31 +01:00
committed by Philip Howard
parent 43aa862e97
commit d24a8fc4cb
24 changed files with 2308 additions and 392 deletions

View File

@@ -52,7 +52,8 @@ int main (void)
printf ("Native GPIO method: (%8d iterations)\n", FAST_COUNT) ;
wiringPiGpioMode (WPI_MODE_GPIO) ;
if (wiringPiSetupGpio () == -1)
exit (1) ;
pinMode (17, OUTPUT) ;
@@ -77,7 +78,8 @@ int main (void)
// Switch to SYS mode:
wiringPiSetupSys () ;
if (wiringPiSetupSys () == -1)
exit (1) ;
printf ("/sys/class/gpio method: (%8d iterations)\n", SLOW_COUNT) ;