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
b54a14a8
Commit
b54a14a8
authored
Sep 07, 2015
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use REF_CLOCK_PERIOD_PS instead of the hardcoded values
Based on Peter's work for km2net CLB board.
parent
0e8b222a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
minic.c
dev/minic.c
+1
-1
ppsi-wrappers.c
lib/ppsi-wrappers.c
+1
-1
No files found.
dev/minic.c
View file @
b54a14a8
...
...
@@ -374,7 +374,7 @@ int minic_tx_frame(uint8_t * hdr, uint8_t * payload, uint32_t size,
hwts
->
valid
=
ts_valid
;
hwts
->
sec
=
sec
;
hwts
->
ahead
=
0
;
hwts
->
nsec
=
counter_r
*
8
;
hwts
->
nsec
=
counter_r
*
(
REF_CLOCK_PERIOD_PS
/
1000
)
;
// TRACE_DEV("minic_tx_frame [%d bytes] TS: %d.%d valid %d\n", size, hwts->utc, hwts->nsec, hwts->valid);
minic
.
tx_count
++
;
...
...
lib/ppsi-wrappers.c
View file @
b54a14a8
...
...
@@ -49,7 +49,7 @@ int wrpc_get_port_state(struct hal_port_state *port, const char *port_name)
port
->
locked
=
spll_check_lock
(
0
);
/* port->lock_priority = 0;*/
/*spll_get_phase_shift(0, NULL, (int32_t *)&port->phase_setpoint);*/
port
->
clock_period
=
8000
;
port
->
clock_period
=
REF_CLOCK_PERIOD_PS
;
port
->
t2_phase_transition
=
cal_phase_transition
;
port
->
t4_phase_transition
=
cal_phase_transition
;
get_mac_addr
(
port
->
hw_addr
);
...
...
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