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
7
Merge Requests
7
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
3df9509e
Commit
3df9509e
authored
Aug 01, 2017
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppsi: Support 64bit values of extra timestamp delays
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
ebb85515
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
shell.h
include/shell.h
+1
-0
ppsi
ppsi
+1
-1
shell.c
shell/shell.c
+14
-2
No files found.
include/shell.h
View file @
3df9509e
...
@@ -13,6 +13,7 @@ extern int wrc_ui_mode;
...
@@ -13,6 +13,7 @@ extern int wrc_ui_mode;
extern
int
wrc_stat_running
;
extern
int
wrc_stat_running
;
const
char
*
fromhex
(
const
char
*
hex
,
int
*
v
);
const
char
*
fromhex
(
const
char
*
hex
,
int
*
v
);
const
char
*
fromhex64
(
const
char
*
hex
,
int64_t
*
v
);
const
char
*
fromdec
(
const
char
*
dec
,
int
*
v
);
const
char
*
fromdec
(
const
char
*
dec
,
int
*
v
);
void
decode_mac
(
const
char
*
str
,
unsigned
char
*
mac
);
void
decode_mac
(
const
char
*
str
,
unsigned
char
*
mac
);
char
*
format_mac
(
char
*
s
,
const
unsigned
char
*
mac
);
char
*
format_mac
(
char
*
s
,
const
unsigned
char
*
mac
);
...
...
ppsi
@
c0a3c95b
Subproject commit
aff58d8379d30464c944f795a08dc03bf9eb53f2
Subproject commit
c0a3c95b76a7bc8d7f460972d85cb346f3e99d71
shell/shell.c
View file @
3df9509e
...
@@ -220,9 +220,11 @@ int shell_interactive()
...
@@ -220,9 +220,11 @@ int shell_interactive()
return
0
;
return
0
;
}
}
const
char
*
fromhex
(
const
char
*
hex
,
int
*
v
)
const
char
*
fromhex64
(
const
char
*
hex
,
int64_t
*
v
)
{
{
int
o
=
0
,
sign
=
1
;
int64_t
o
=
0
;
int
sign
=
1
;
if
(
hex
&&
*
hex
==
'-'
)
{
if
(
hex
&&
*
hex
==
'-'
)
{
sign
=
-
1
;
sign
=
-
1
;
...
@@ -244,6 +246,16 @@ const char *fromhex(const char *hex, int *v)
...
@@ -244,6 +246,16 @@ const char *fromhex(const char *hex, int *v)
return
hex
;
return
hex
;
}
}
const
char
*
fromhex
(
const
char
*
hex
,
int
*
v
)
{
const
char
*
ret
;
int64_t
v64
;
ret
=
fromhex64
(
hex
,
&
v64
);
*
v
=
(
int
)
v64
;
return
ret
;
}
const
char
*
fromdec
(
const
char
*
dec
,
int
*
v
)
const
char
*
fromdec
(
const
char
*
dec
,
int
*
v
)
{
{
int
o
=
0
,
sign
=
1
;
int
o
=
0
,
sign
=
1
;
...
...
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