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
722f4af8
Commit
722f4af8
authored
Sep 23, 2019
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev/ertm14_dds_sync: fix parentheses
parent
f40c9c82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
ertm14_dds_sync.c
dev/ertm14_dds_sync.c
+1
-2
No files found.
dev/ertm14_dds_sync.c
View file @
722f4af8
...
...
@@ -92,7 +92,7 @@ void dds_sync_unit_trigger( struct dds_sync_unit_device* dev, uint32_t mask, int
{
struct
dds_sync_unit_channel
*
ch
=
&
dev
->
channels
[
i
];
if
(
ch
->
flags
&
DDS_SYNC_ENABLED
&&
(
mask
&
(
1
<<
i
)))
if
(
(
ch
->
flags
&
DDS_SYNC_ENABLED
)
&&
(
mask
&
(
1
<<
i
)))
{
uint32_t
ocr
;
int
polarity
=
ch
->
flags
&
DDS_SYNC_NEGATIVE
;
...
...
@@ -101,7 +101,6 @@ void dds_sync_unit_trigger( struct dds_sync_unit_device* dev, uint32_t mask, int
uint32_t
coarse_ser
=
ch
->
pps_offset_ps
/
2000
-
coarse_par
*
8
;
uint32_t
fine
=
(
ch
->
pps_offset_ps
%
2000
)
/
ch
->
delay_tap_size
;
//pp_printf("coarse_par %d coarse_ser %d fine %d\n", coarse_par, coarse_ser, fine );
uint32_t
mask
;
if
(
continuous
)
...
...
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