Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
8e0b8314
Commit
8e0b8314
authored
7 years ago
by
davidaroyer
Committed by
Lorenz Meier
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
drivers: move board specific device path to board_config.h
parent
68983f7e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/drivers/boards/ocpoc/board_config.h
+1
-0
1 addition, 0 deletions
src/drivers/boards/ocpoc/board_config.h
src/drivers/drv_led.h
+2
-2
2 additions, 2 deletions
src/drivers/drv_led.h
with
3 additions
and
2 deletions
src/drivers/boards/ocpoc/board_config.h
+
1
−
0
View file @
8e0b8314
...
...
@@ -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"
This diff is collapsed.
Click to expand it.
src/drivers/drv_led.h
+
2
−
2
View file @
8e0b8314
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment