Skip to content
Snippets Groups Projects
Commit 8e0b8314 authored by davidaroyer's avatar davidaroyer Committed by Lorenz Meier
Browse files

drivers: move board specific device path to board_config.h

parent 68983f7e
No related branches found
No related tags found
No related merge requests found
......@@ -56,3 +56,4 @@
#include "../common/board_common.h"
#define BOARD_MAX_LEDS 1 // Number external of LED's this board has
#define BOARD_RGBLED0_PATH "/dev/i2c-1"
......@@ -57,8 +57,8 @@
// set the queue size to the number of LED's, so that each led can be controlled individually
static const int LED_UORB_QUEUE_LENGTH = BOARD_MAX_LEDS;
#if defined (__PX4_POSIX_OCPOC)
#define RGBLED0_DEVICE_PATH "/dev/i2c-1"
#if defined(BOARD_RGBLED0_PATH)
#define RGBLED0_DEVICE_PATH BOARD_RGBLED0_PATH
#else
#define RGBLED0_DEVICE_PATH "/dev/rgbled0"
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment