Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Trigger Distribution
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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 Trigger Distribution
Commits
eec5473b
Commit
eec5473b
authored
Aug 08, 2018
by
Dimitris Lampridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw: fix endpoint configuration in tdc and fd firmware
parent
b62bd1fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
wrtd-rt-fd.c
software/firmware/fd/wrtd-rt-fd.c
+5
-7
wrtd-rt-tdc.c
software/firmware/tdc/wrtd-rt-tdc.c
+2
-4
No files found.
software/firmware/fd/wrtd-rt-fd.c
View file @
eec5473b
...
...
@@ -927,20 +927,18 @@ static int wrtd_o_sim_init(void)
*/
static
int
wrtd_o_init
(
void
)
{
st
atic
const
st
ruct
trtl_ep_eth_address
addr
=
{
struct
trtl_ep_eth_address
addr
=
{
.
type
=
TRTL_EP_FRAME_UDP
,
.
dst_mac
=
{
0xFF
,
0xFF
,
0xFF
,
0xFF
,
0xFF
,
0xFF
},
.
dst_ip
=
0xFFFFFFFF
,
.
src_ip
=
0xC0A85A12
,
.
dst_port
=
WRTD_IN_PORT
,
.
src_port
=
WRTD_OUT_PORT
,
.
dst_port
=
WRTD_OUT_PORT
,
.
ethertype
=
0x800
,
/* IPv4 */
.
filter
=
TRTL_EP_FILTER_UDP
|
TRTL_EP_FILTER_DST_PORT
|
TRTL_EP_FILTER_DST_IP
,
TRTL_EP_FILTER_DST_PORT
,
};
int
i
,
j
;
addr
.
filter
|=
TRTL_EP_FILTER_ENABLE
;
if
(
!
wr_present
())
{
pr_error
(
"WhiteRabbit not found
\n\r
"
);
return
-
EINVAL
;
...
...
software/firmware/tdc/wrtd-rt-tdc.c
View file @
eec5473b
...
...
@@ -452,14 +452,12 @@ static int wrtd_i_init(void)
struct
trtl_ep_eth_address
addr
=
{
.
type
=
TRTL_EP_FRAME_UDP
,
.
dst_mac
=
{
0xFF
,
0xFF
,
0xFF
,
0xFF
,
0xFF
,
0xFF
},
.
dst_ip
=
0xFFFFFF
,
/* broadcast on 255.255.255.255 */
.
dst_ip
=
0xFFFFFF
FF
,
/* broadcast on 255.255.255.255 */
.
src_ip
=
0xC0A85A11
,
.
dst_port
=
WRTD_OUT_PORT
,
.
src_port
=
WRTD_IN_PORT
,
.
ethertype
=
0x800
,
/* IPv4 */
.
filter
=
TRTL_EP_FILTER_UDP
|
TRTL_EP_FILTER_DST_PORT
|
TRTL_EP_FILTER_DST_IP
,
.
filter
=
0
/* only the TX path of the endpoint is used */
};
int
i
;
...
...
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