How to use GPIO pin as the trigger for IIO devices?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 am testing an IIO gyro sensor using kernel 4.4, currently I can use
the sysfs trigger as a trigger, I can read the data from
/dev/iio:deviceX after "echo 1 > trigger_now".


I want to use a gpio pin for the data trigger. For example, when the
GPIO pin 62 is low, the data will be ready.


How to connect/setup the gpio with the IIO triggers, how can I use the
iio_trig_interrupt.ko? I found there is new triggers in the
/sys/bus/iio/devices after I loaded the iio_trig_interrupt.ko.

Thanks,
Yong
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux