Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
102ddddc
Commit
102ddddc
authored
Aug 27, 2019
by
Maciej Lipinski
Committed by
Jean-Claude BAU
Oct 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[HAL/ppsi] Moved SFP_LED_WRMODE_* from sfp_lib.h to hal_port_leds.h
These defines are used only in HAL
parent
f2429274
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
sfp_lib.h
userspace/libwr/include/libwr/sfp_lib.h
+0
-4
hal_port_leds.h
userspace/wrsw_hal/hal_port_leds.h
+5
-0
No files found.
userspace/libwr/include/libwr/sfp_lib.h
View file @
102ddddc
...
...
@@ -2,10 +2,6 @@
#define __LIBWR_SHW_SFPLIB_H
/* note each led contains green and orange part */
#define SFP_LED_WRMODE_SLAVE (1)
/* green */
#define SFP_LED_WRMODE_OTHER (2)
/* orange */
#define SFP_LED_WRMODE_MASTER (3)
/* yellow */
#define SFP_LED_WRMODE_OFF (4)
/* to off entire WRMODE LED */
#define SFP_LED_WRMODE1 (1 << 0)
#define SFP_LED_WRMODE2 (1 << 1)
#define SFP_LED_SYNCED (1 << 2)
...
...
userspace/wrsw_hal/hal_port_leds.h
View file @
102ddddc
...
...
@@ -10,6 +10,11 @@
#ifndef HAL_PORT_LEDS_H
#define HAL_PORT_LEDS_H
#define SFP_LED_WRMODE_SLAVE (1)
/* green */
#define SFP_LED_WRMODE_OTHER (2)
/* orange */
#define SFP_LED_WRMODE_MASTER (3)
/* yellow */
#define SFP_LED_WRMODE_OFF (4)
/* to off entire WRMODE LED */
/* Prototypes */
extern
void
led_init_all_ports
(
struct
hal_port_state
*
ps
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment