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
7
Merge Requests
7
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
efa50a79
Commit
efa50a79
authored
Jul 27, 2018
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
introduce HAS_ABSCAL
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
72cd15f8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
board-wrc.h
include/board-wrc.h
+6
-0
ipv4.c
lib/ipv4.c
+1
-1
lldp.c
lib/lldp.c
+1
-1
No files found.
include/board-wrc.h
View file @
efa50a79
...
...
@@ -58,4 +58,10 @@ int board_update(void);
#define HAS_IP 0
#endif
#ifdef CONFIG_ABSCAL
#define HAS_ABSCAL 1
#else
#define HAS_ABSCAL 0
#endif
#endif
/* __BOARD_WRC_H */
lib/ipv4.c
View file @
efa50a79
...
...
@@ -104,7 +104,7 @@ static int bootp_poll(void)
return
0
;
/* no extra traffic when abscal is in progress */
if
(
ptp_mode
==
WRC_MODE_ABSCAL
)
if
(
HAS_ABSCAL
&&
ptp_mode
==
WRC_MODE_ABSCAL
)
return
0
;
if
(
len
>
0
)
...
...
lib/lldp.c
View file @
efa50a79
...
...
@@ -246,7 +246,7 @@ static int lldp_poll(void)
static
uint8_t
old_mac
[
ETH_ALEN
];
/* no extra traffic when abscal is in progress */
if
(
ptp_mode
==
WRC_MODE_ABSCAL
)
if
(
HAS_ABSCAL
&&
ptp_mode
==
WRC_MODE_ABSCAL
)
return
0
;
/* periodic tasks */
...
...
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