Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
PPSi
Commits
dc1c7d26
Commit
dc1c7d26
authored
Aug 20, 2020
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arch-wrpc: use new endpoint API
parent
faf82346
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
wrc_ptp_ppsi.c
arch-wrpc/wrc_ptp_ppsi.c
+2
-0
wrpc-calibration.c
arch-wrpc/wrpc-calibration.c
+3
-2
wrpc-socket.c
time-wrpc/wrpc-socket.c
+2
-1
No files found.
arch-wrpc/wrc_ptp_ppsi.c
View file @
dc1c7d26
...
...
@@ -215,6 +215,8 @@ int wrc_ptp_start()
{
struct
pp_instance
*
ppi
=
&
ppi_static
;
pp_printf
(
"PTP Start!
\n
"
);
pp_init_globals
(
&
ppg_static
,
&
__pp_default_rt_opts
);
/* Call the state machine. Being it in "Initializing" state, make
...
...
arch-wrpc/wrpc-calibration.c
View file @
dc1c7d26
...
...
@@ -11,6 +11,7 @@
#include <hal_exports.h>
#include "wrpc.h"
#include "../proto-ext-whiterabbit/wr-constants.h"
#include "board.h"
extern
int32_t
sfp_alpha
;
...
...
@@ -86,12 +87,12 @@ int wrpc_calibration_pattern_enable(struct pp_instance *ppi,
unsigned
int
calibrationPattern
,
unsigned
int
calibrationPatternLen
)
{
ep_cal_pattern_enable
();
ep_cal_pattern_enable
(
&
wrc_endpoint_dev
);
return
WR_HW_CALIB_OK
;
}
int
wrpc_calibration_pattern_disable
(
struct
pp_instance
*
ppi
)
{
ep_cal_pattern_disable
();
ep_cal_pattern_disable
(
&
wrc_endpoint_dev
);
return
WR_HW_CALIB_OK
;
}
time-wrpc/wrpc-socket.c
View file @
dc1c7d26
...
...
@@ -11,6 +11,7 @@
#include <dev/syscon.h>
/* wrpc-sw */
#include <dev/endpoint.h>
/* wrpc-sw */
#include <ptpd_netif.h>
/* wrpc-sw */
#include "board.h"
int
frame_rx_delay_us
;
/* set by faults.c */
...
...
@@ -92,7 +93,7 @@ static int wrpc_net_recv(struct pp_instance *ppi, void *pkt, int len,
/* WR counts bitslide later, in fixed-delta, so subtract it */
t4
=
*
t
;
bitslide
=
ep_get_bitslide
();
bitslide
=
ep_get_bitslide
(
&
wrc_endpoint_dev
);
t_bts
.
secs
=
0
;
t_bts
.
scaled_nsecs
=
(
bitslide
<<
16
)
/
1000
;
pp_time_sub
(
&
t4
,
&
t_bts
);
...
...
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