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
6
Merge Requests
6
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
efd14fc9
Commit
efd14fc9
authored
Apr 23, 2018
by
Peter Jansweijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implemented 256 byte mailbox DPRAM
parent
bf998211
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
wrx_wrpc.c
dev/wrx_wrpc.c
+3
-2
No files found.
dev/wrx_wrpc.c
View file @
efd14fc9
#include <w1.h>
#include <w1.h>
#define WRX_BASE
0x000001FF80 //!< Base address of WRX structure
#define WRX_BASE
0x00000700 //!< Base address of WRX 256 bytes mailbox DPRAM (wr-cores: Aux-Master)
#define WRX_OFFSET 0x000
0100000 //!< Memory address offset of 2nd LM32
#define WRX_OFFSET 0x000
20000 //!< wr-cores: WB_SECONDARY_CON
#define WRX_MAGIC 0xDACE //!< Magic word
#define WRX_MAGIC 0xDACE //!< Magic word
#define WRX_VERSION 0x1 //!< Current version
#define WRX_VERSION 0x1 //!< Current version
...
@@ -40,6 +40,7 @@ void wrxInit(uint8_t mac_addr[])
...
@@ -40,6 +40,7 @@ void wrxInit(uint8_t mac_addr[])
_wrx
->
magic
=
WRX_MAGIC
;
_wrx
->
magic
=
WRX_MAGIC
;
_wrx
->
ver
=
WRX_VERSION
;
_wrx
->
ver
=
WRX_VERSION
;
_wrx
->
info
.
valid
=
0
;
_wrx
->
info
.
valid
=
0
;
pp_printf
(
"DACE=%04X?
\n
"
,
_wrx
->
magic
);
// mocht je zeker weten dat het mac - adreess
// mocht je zeker weten dat het mac - adreess
if
(
(
_wrx
->
info
.
valid
&
WRX_VAL_MAC_ADDRESS
)
==
0
)
if
(
(
_wrx
->
info
.
valid
&
WRX_VAL_MAC_ADDRESS
)
==
0
)
...
...
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