Firmware
Macros | Functions
drv_board_led.h File Reference

LED driver API to control the onboard LED(s) via ioctl() interface. More...

#include <px4_defines.h>
#include <stdint.h>
#include <sys/ioctl.h>

Go to the source code of this file.

Macros

#define LED_BASE_DEVICE_PATH   "/dev/led"
 
#define LED0_DEVICE_PATH   "/dev/led0"
 
#define _LED_BASE   0x2800
 
#define LED_AMBER   1
 
#define LED_RED   1 /* some boards have red rather than amber */
 
#define LED_BLUE   0
 
#define LED_SAFETY   2
 
#define LED_GREEN   3
 
#define LED_ON   _PX4_IOC(_LED_BASE, 0)
 
#define LED_OFF   _PX4_IOC(_LED_BASE, 1)
 
#define LED_TOGGLE   _PX4_IOC(_LED_BASE, 2)
 

Functions

__BEGIN_DECLS __EXPORT void drv_led_start (void)
 

Detailed Description

LED driver API to control the onboard LED(s) via ioctl() interface.