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
7d366a33
Commit
7d366a33
authored
Jun 19, 2017
by
Dimitris Lampridis
Committed by
Grzegorz Daniluk
Jun 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sim main: disable discovery of peripherals via SDB to speed-up the simulation.
parent
e54a1a4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
wrc_main_sim.c
wrc_main_sim.c
+16
-1
No files found.
wrc_main_sim.c
View file @
7d366a33
...
@@ -77,7 +77,22 @@ static void wrc_sim_initialize(void)
...
@@ -77,7 +77,22 @@ static void wrc_sim_initialize(void)
{
{
uint8_t
mac_addr
[
6
];
uint8_t
mac_addr
[
6
];
sdb_find_devices
();
// Search SDB for devices takes too long, hard-coded offsets
// should work for most WR-PTP core implementations
// (unless you add/remove/move peripherals), in which case
// you should comment out all the hard-coded offsets and
// uncomment the following line to perform a dynamic search
// at runtime.
//sdb_find_devices();
BASE_MINIC
=
0x20000
;
BASE_EP
=
0x20100
;
BASE_SOFTPLL
=
0x20200
;
BASE_PPS_GEN
=
0x20300
;
BASE_SYSCON
=
0x20400
;
BASE_UART
=
0x20500
;
BASE_ONEWIRE
=
0x20600
;
BASE_ETHERBONE_CFG
=
0x20700
;
timer_init
(
1
);
timer_init
(
1
);
/* Source MAC used by WRPC's Endpoint */
/* Source MAC used by WRPC's Endpoint */
...
...
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