Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
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
Software for White Rabbit PTP Core
Commits
4ae0edda
Commit
4ae0edda
authored
Nov 17, 2014
by
Alessandro Rubini
Committed by
Grzegorz Daniluk
Nov 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrc.h: offer is_wr_{switch,node} as integers
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
f235dfbc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
wrc.h
include/wrc.h
+9
-0
No files found.
include/wrc.h
View file @
4ae0edda
...
...
@@ -19,6 +19,15 @@
#undef ARRAY_SIZE
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
/* Allow "if" at C language level, to avoid ifdef */
#ifdef CONFIG_WR_SWITCH
# define is_wr_switch 1
# define is_wr_node 0
#else
# define is_wr_switch 0
# define is_wr_node 1
#endif
void
wrc_mon_gui
(
void
);
void
shell_init
(
void
);
int
wrc_log_stats
(
uint8_t
onetime
);
...
...
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