r4885 - developers/werner/wolfhammer
werner at docs.openmoko.org
werner at docs.openmoko.org
Wed Jan 14 00:51:54 CET 2009
Author: werner
Date: 2009-01-14 00:51:53 +0100 (Wed, 14 Jan 2009)
New Revision: 4885
Modified:
developers/werner/wolfhammer/wolfhammer.c
Log:
Changed frequency from 50Hz to 40Hz, to avoid confusion with mains.
http://people.openmoko.org/werner/a6-nrw-fft.png
Modified: developers/werner/wolfhammer/wolfhammer.c
===================================================================
--- developers/werner/wolfhammer/wolfhammer.c 2009-01-13 17:03:14 UTC (rev 4884)
+++ developers/werner/wolfhammer/wolfhammer.c 2009-01-13 23:51:53 UTC (rev 4885)
@@ -14,6 +14,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
+#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
@@ -107,6 +108,7 @@
fd = codec_open();
for (i = 0; i != n; i++) {
codec_write(fd, MICBIAS_ON);
+ usleep(100);
codec_write(fd, MICBIAS_OFF);
}
return 0;
More information about the commitlog
mailing list