Re: How to use gpiod_line_set_flags

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

 



On Mon, Aug 14, 2023 at 11:25:18PM +0100, andy pugh wrote:
> I am somewhat puzzled by an error report when I try to use the
> function ‘gpiod_line_set_flags’
> 
>  warning: implicit declaration of function ‘gpiod_line_set_flags’
> 
> Many other function calls in the same code are working just fine.
> gpiod_line_set_flags() appears as a function declaration in the header
> file looking just like the ones that do work (as far as I can tell)
> 
> At the moment I have the code commented out, but I was hoping to be
> able to use the flags to control pull-up and pull-down.
> 

gpiod_line_set_flags() was a relatively recent addition to libgpiod, so
my guess is you have an old gpiod.h being included by your build.
Though that was added in 1.5, so it would have to be older than that.

Cheers,
Kent.




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux