How to notify interrupt occurs to user space program?

Hi.

I'm implementing a user space program and a kernel space device driver with below permalink (https://github.com/BoschSensortec/drivers.git)

The program is working properly to get interrupt status with polling method.

I would like to get the interrupt notification from kernel space, but above permalink doesn't show sample codes

Could you let me know the way to notify interrupt status?

 

Best reply by Minhwan

Hello dooboo, 

 

The reference code you refered is old code, please check new code. 

There is latest code using BMI260 based on application board 2.0.

https://www.bosch-sensortec.com/software-tools/tools/coines/

When you download this, there is interrupt example as below url. 

C:\COINES\v2.2\examples\c\bmi160\interrupt_streaming_mcu\bmi160_interrupt_streaming_mcu.c

Hope this helsp for you. 

Thanks, 

View original
1 reply
Resolved