mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 09:22:18 +00:00
drivers: move board specific device path to board_config.h
This commit is contained in:
committed by
Lorenz Meier
parent
68983f7ee2
commit
8e0b8314c6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user