iio trig bfn timer - ArrowElectronics/arrow-adi-intel-psg GitHub Wiki

iio-trig-bfin-timer driver

Description

This driver allows any Blackfin system timer to be used as IIO trigger. It supports trigger rates from 0Hz to 100kHz, in Hz resolution.

Adding Linux driver support

Configure kernel with make menuconfig (alternatively use make xconfig or make qconfig)

Linux Kernel Configuration
	Device Drivers  --->
		[*] Staging drivers  --->
			<*>     Industrial I/O support  --->
			    --- Industrial I/O support
			    -*-   Enable ring buffer support within IIO
			    -*-     Industrial I/O lock free software ring
			    -*-   Enable triggered sampling support
		    [--snip--]
		    
		          *** Triggers - standalone ***
		    < >   Periodic RTC triggers
		    < >   GPIO trigger
		    < >   SYSFS trigger
		    <*>   Blackfin TIMER trigger

Example platform device initialization

One or multiple instances of this driver can be declared by adding appropriate platform device data. An example is shown below:







Driver testing

$ cd sys/bus/iio/devices/  
$ ls  
device0                  device0:buffer0:event0   device1:buffer0:access0  
device0:buffer0          device1                  device1:buffer0:event0  
device0:buffer0:access0  device1:buffer0          trigger0  
$ cd trigger0
$ ls
name         subsystem    frequency  uevent                                
$ cat name  
bfintmr3                                                                   
$ echo 1000 > frequency  
$ echo 0 > frequency                                                       

More Information

IIO Documentation



Return to IIO section


Information on this site was obtained from
⚠️ **GitHub.com Fallback** ⚠️