Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7053

General programming discussion • Kernel Module Interrupt Handler options + latency

$
0
0
Hi, I asked a related question on the C++ forum but this is a bit different.

Basically, I have an IMU which has a signal pin for new data. When new data is available I want it sampled immediately and every 10 samples I want to trigger a GPIO pin which triggers some cameras.

It looks like doing this in userspace will not work since time latency can be 50ms(way too much).

Is a Kernel Module a viable option for this? Additionally within the kernel module interrupt handler can I pull in I2C data and put it in a buffer for use by user-space program?

Statistics: Posted by Arkas — Thu Mar 28, 2024 5:43 pm — Replies 0 — Views 25



Viewing all articles
Browse latest Browse all 7053

Trending Articles