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
b25f479e
Commit
b25f479e
authored
Apr 05, 2024
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FEATURE:
#54
] arch-wrpc: Add configuration item for ptp_fallback
Signed-off-by:
Adam Wujek
<
dev_public@wujek.eu
>
parent
c034de96
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
Kconfig_ppsi
Kconfig_ppsi
+8
-0
wrc_ptp_ppsi.c
arch-wrpc/wrc_ptp_ppsi.c
+7
-1
No files found.
Kconfig_ppsi
View file @
b25f479e
...
...
@@ -210,6 +210,14 @@ menu "PTP Protocol Options"
default 37
help
Difference in seconds between TAI and UTC.
config PTP_FALLBACK_PTP_DISABLE
boolean "Disable fallback from WR to PTP"
default false
help
Option to disable PTP fallback from WR to PTP.
In some situations it might be desired to retry
establishing WR link on handshake failure.
endmenu
menu "Enabled profiles"
...
...
arch-wrpc/wrc_ptp_ppsi.c
View file @
b25f479e
...
...
@@ -22,6 +22,12 @@
#include "softpll_ng.h"
#ifdef CONFIG_PTP_FALLBACK_PTP_DISABLE
# define HAS_PTP_FALLBACK 0
#else
# define HAS_PTP_FALLBACK 1
#endif
/* TODO: get rid of ptp_mode, use WRPC_ARCH_G(ppg)->timingModeCfg instead */
static
uint8_t
ptp_mode
=
WRC_MODE_UNKNOWN
;
...
...
@@ -126,7 +132,7 @@ int wrc_ptp_init(void)
ppi
->
__tx_buffer
=
__tx_buffer
;
ppi
->
__rx_buffer
=
__rx_buffer
;
ppi
->
servo
=
&
servo
;
ppi
->
ptp_fallback
=
TRUE
;
ppi
->
ptp_fallback
=
HAS_PTP_FALLBACK
;
ppi
->
asymmetryCorrectionPortDS
.
enable
=
1
;
/* copy default ppi config */
...
...
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