I am working on a user application, which depends on I2C or SPI device connected with the beaglebone board. My app is running in userspace. Now whenever an interrupt occurs from I2c device, My application should get the data from I2c device.
My question is how to sync all these. Do I need to write a device driver which gets the data from I2c device or trigger another device driver to read the data from I2c and how it can trigger my user app to get the data?
/dev
which is the character device driver to access. You can create a thread to poll for an interrupt. If this doesn't exist then you'll have to write your own device driver. – user2205930