]> sigrok.org Git - libsigrok.git/commitdiff
baylibre-acme: Use timerfd instead of a fake pipe.
authorDaniel Lezcano <redacted>
Thu, 4 Jun 2015 17:01:27 +0000 (19:01 +0200)
committerUwe Hermann <redacted>
Tue, 30 Jun 2015 22:00:33 +0000 (00:00 +0200)
Currently baylibre-acme uses a fake pipe as the input channel required by
libsigrok API and calls sleep() in the data acquisition callback to create
intervals between measurements.

Switch to a more elegant approach: use Linux' timerfd and set a periodic
timer equal to the sampling rate. Then read the data every time the timer
expires.

Signed-off-by: Daniel Lezcano <redacted>
Signed-off-by: Bartosz Golaszewski <redacted>

No differences found