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
31
Issues
31
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
6ef640ad
Commit
6ef640ad
authored
Jan 21, 2021
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell: bring back low-level commands (like devmem)
parent
03a34a52
Pipeline
#819
passed with stage
in 24 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
wrc.h
include/wrc.h
+6
-0
cmd_ll.c
shell/cmd_ll.c
+1
-1
shell.c
shell/shell.c
+4
-0
No files found.
include/wrc.h
View file @
6ef640ad
...
...
@@ -74,6 +74,12 @@
#define HAS_VLANS 0
#endif
#ifdef CONFIG_CMD_LL
#define HAS_LL 1
#else
#define HAS_LL 0
#endif
extern
int
wrc_vlan_number
;
int
wrc_mon_gui
(
void
);
...
...
shell/cmd_ll.c
View file @
6ef640ad
...
...
@@ -55,7 +55,7 @@ static int cmd_delays(const char *args[])
sfp_deltaRx
=
rx
;
/* Change the active value too (add bislide here) */
s
->
delta_tx_m
=
tx
;
s
->
delta_rx_m
=
rx
+
ep_get_bitslide
();
s
->
delta_rx_m
=
rx
+
ep_get_bitslide
(
&
wrc_endpoint_dev
);
}
else
{
pp_printf
(
"tx: %i rx: %i
\n
"
,
sfp_deltaTx
,
sfp_deltaRx
);
}
...
...
shell/shell.c
View file @
6ef640ad
...
...
@@ -369,5 +369,9 @@ void shell_register_commands(void)
REGISTER_WRC_COMMAND
(
ip
);
if
(
HAS_VLANS
)
REGISTER_WRC_COMMAND
(
vlan
);
if
(
HAS_LL
)
{
REGISTER_WRC_COMMAND
(
devmem
);
REGISTER_WRC_COMMAND
(
delays
);
}
}
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