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
29
Issues
29
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
8737a126
Commit
8737a126
authored
Jun 13, 2012
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fixes/cleanups
parent
98aac55c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
10 deletions
+3
-10
minic.c
dev/minic.c
+0
-6
pps_gen.c
dev/pps_gen.c
+3
-2
wrc_ptp.c
wrc_ptp.c
+0
-2
No files found.
dev/minic.c
View file @
8737a126
...
...
@@ -46,14 +46,8 @@ struct wr_minic {
uint32_t
rx_avail
,
rx_size
;
volatile
uint32_t
*
tx_head
,
*
tx_base
;
uint32_t
tx_avail
,
tx_size
;
int
synced
;
int
syncing_counters
;
int
iface_up
;
int
tx_count
,
rx_count
;
uint32_t
cur_rx_desc
;
};
static
struct
wr_minic
minic
;
...
...
dev/pps_gen.c
View file @
8737a126
...
...
@@ -2,6 +2,7 @@
#include "pps_gen.h"
#include "hw/pps_gen_regs.h"
/* PPS Generator driver */
/* Warning: references to "UTC" in the registers DO NOT MEAN actual UTC time, it's just a plain second counter
...
...
@@ -39,8 +40,8 @@ int pps_gen_adjust(int counter, int64_t how_much)
{
uint32_t
cr
;
TRACE_DEV
(
"Adjust: counter = %s [%c%
lld]
"
,
counter
==
PPSG_ADJUST_SEC
?
"seconds"
:
"nanoseconds"
,
how_much
<
0
?
'-'
:
'+'
,
abs
(
how_much
));
TRACE_DEV
(
"Adjust: counter = %s [%c%
d]
\n
"
,
counter
==
PPSG_ADJUST_SEC
?
"seconds"
:
"nanoseconds"
,
how_much
<
0
?
'-'
:
'+'
,
(
int32_t
)
abs
(
how_much
));
if
(
counter
==
PPSG_ADJUST_NSEC
)
{
...
...
wrc_ptp.c
View file @
8737a126
...
...
@@ -59,8 +59,6 @@ int wrc_ptp_init()
ptpPortDS
=
ptpdStartup
(
0
,
NULL
,
&
ret
,
&
rtOpts
,
&
ptpClockDS
);
initDataClock
(
&
rtOpts
,
&
ptpClockDS
);
displayConfigINFO
(
&
rtOpts
);
//initialize sockets
if
(
!
netInit
(
&
ptpPortDS
->
netPath
,
&
rtOpts
,
ptpPortDS
))
{
...
...
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