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
e42de625
Commit
e42de625
authored
Jul 09, 2020
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding missing etherbone files
parent
958090f2
Pipeline
#294
failed with stages
in 13 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
etherbone.c
dev/etherbone.c
+20
-0
etherbone.h
include/dev/etherbone.h
+12
-0
No files found.
dev/etherbone.c
0 → 100644
View file @
e42de625
/*
* This work is part of the White Rabbit project
*
* Copyright (C) 2020 CERN (www.cern.ch)
* Author: Grzegorz Daniluk <grzegorz.daniluk@cern.ch>
*
* Released according to the GNU LGPL, version 2.1 or any later version.
*/
#include "hw/etherbone-config.h"
void
eb_setIP
(
unsigned
char
*
IP
)
{
volatile
unsigned
int
*
eb_ip
=
(
unsigned
int
*
)(
BASE_ETHERBONE_CFG
+
EB_IPV4
);
unsigned
int
ip
;
ip
=
(
IP
[
0
]
<<
24
)
|
(
IP
[
1
]
<<
16
)
|
(
IP
[
2
]
<<
8
)
|
(
IP
[
3
]);
while
(
*
eb_ip
!=
ip
)
*
eb_ip
=
ip
;
}
include/dev/etherbone.h
0 → 100644
View file @
e42de625
/*
* This work is part of the White Rabbit project
*
* Released according to the GNU GPL, version 2 or any later version.
*/
#ifndef __ETHERBONE_H__
#define __ETHERBONE_H__
void
eb_setIP
(
unsigned
char
*
IP
);
#endif
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