On 31 January 2017 07:19:16 GMT+00:00, Peter Meerwald-Stadler
wrote:
>
>> > + indio_dev->num_channels = ARRAY_SIZE(srf04_chan_spec);
>> > +
>> > + return iio_device_register(indio_dev);
>> > +}
>> > +
>> > +static int srf04_remove(struct platform_device *pdev)
>> > +{
>> > + struct iio_dev *
> > + indio_dev->num_channels = ARRAY_SIZE(srf04_chan_spec);
> > +
> > + return iio_device_register(indio_dev);
> > +}
> > +
> > +static int srf04_remove(struct platform_device *pdev)
> > +{
> > + struct iio_dev *indio_dev = platform_get_drvdata(pdev);
> > +
> > + iio_device_unregister(ind
On 30/01/17 12:51, Andreas Klinger wrote:
> This patch adds support for the ultrasonic ranger srf04 of devantech.
>
> This device is measuring the distance of objects in a range between 1 cm
> and 3 meters and a theoretical resolution of 3 mm.
>
> There are two GPIOs used:
> - trigger: set as o
This patch adds support for the ultrasonic ranger srf04 of devantech.
This device is measuring the distance of objects in a range between 1 cm
and 3 meters and a theoretical resolution of 3 mm.
There are two GPIOs used:
- trigger: set as output to the device when the measurement should start
4 matches
Mail list logo