Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr2rf-vme
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
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
wr2rf-vme
Commits
bbde2128
Commit
bbde2128
authored
Apr 21, 2021
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
liwr2rf: fix second issue for mac address
parent
b2e12226
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
board.c
software/libwr2rf/board.c
+2
-2
No files found.
software/libwr2rf/board.c
View file @
bbde2128
...
...
@@ -278,10 +278,10 @@ int libwr2rf_get_mac(struct libwr2rf_dev *dev, unsigned char *mac)
unsigned
h
,
l
;
libwr2rf_be_write32
(
dev
,
WR2RF_VME_REGS_INIT
+
WR2RF_INIT_REGS_WRC_PAGE1
,
0x40000
);
h
=
libwr2rf_wrc_read32
(
dev
,
0x100
+
0x24
);
h
=
libwr2rf_wrc_read32
(
dev
,
0x100
0
+
0x100
+
0x24
);
mac
[
0
]
=
(
h
>>
8
)
&
0xff
;
mac
[
1
]
=
(
h
>>
0
)
&
0xff
;
l
=
libwr2rf_wrc_read32
(
dev
,
0x100
+
0x28
);
l
=
libwr2rf_wrc_read32
(
dev
,
0x100
0
+
0x100
+
0x28
);
mac
[
2
]
=
(
l
>>
24
)
&
0xff
;
mac
[
3
]
=
(
l
>>
16
)
&
0xff
;
mac
[
4
]
=
(
l
>>
8
)
&
0xff
;
...
...
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