GPIO_DEVICE_PATH is "/dev/px4io". It is the define used as filename to
anyone who wants to open a handle to operate with the PX4IO. For example
the gpio_led command uses it to toggle bit ports. I changed it here only to
provide consistency and make sure all components use the same file name
when wishing to communicate via IOCTL with the px4io. Admitedly it would be
better named as PX4IO_DEVICE_PATH since the device supports a lot more than
just handling bit ports, but I thought that change would a be too extensive.


On Tue, Jul 9, 2013 at 5:08 AM, Lorenz Meier <notifications@github.com>wrote:

> In src/drivers/px4io/px4io.cpp:
>
> > @@ -313,7 +329,7 @@ class PX4IO : public device::I2C
> >  }
> >
> >  PX4IO::PX4IO() :
> > -	I2C("px4io", "/dev/px4io", PX4_I2C_BUS_ONBOARD, PX4_I2C_OBDEV_PX4IO, 320000),
> > +	I2C("px4io", GPIO_DEVICE_PATH, PX4_I2C_BUS_ONBOARD, PX4_I2C_OBDEV_PX4IO, 320000),
>
> What is the rationale behind the GPIO_DEVICE_PATH change here? I think
> /dev/px4io is still required, since we need a device node name that
> reassures us we're talking to IO.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/PX4/Firmware/pull/323/files#r5085457>
> .
>