40 #include <px4_platform_common/px4_config.h> 54 extern void led_on(
int led);
63 ~LED()
override =
default;
78 PX4_DEBUG(
"LED::init");
106 result = CDev::ioctl(filp, cmd, arg);
120 if (gLED ==
nullptr) {
int ioctl(cdev::file_t *filp, int cmd, unsigned long arg) override
Perform an ioctl operation on the device.
LED driver API to control the onboard LED(s) via ioctl() interface.
__BEGIN_DECLS void led_init()
Abstract class for any character device.
void init()
Activates/configures the hardware registers.
CDev(const char *devname)
Constructor.