40 #include <px4_platform_common/px4_config.h> 44 #include "VirtDevObj.hpp" 57 extern void led_on(
int led);
62 class LED :
public VirtDevObj
66 ~
LED()
override =
default;
69 int devIOCTL(
unsigned long cmd,
unsigned long arg)
override;
114 result = VirtDevObj::devIOCTL(cmd, arg);
128 if (gLED ==
nullptr) {
131 if (gLED !=
nullptr) {
#define LED_BASE_DEVICE_PATH
LED driver API to control the onboard LED(s) via ioctl() interface.
__BEGIN_DECLS void led_init()
int devIOCTL(unsigned long cmd, unsigned long arg) override
void init()
Activates/configures the hardware registers.