Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wrpc-sw
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
hdl-core-lib
wr-cores
wrpc-sw
Commits
392a6317
Commit
392a6317
authored
12 years ago
by
Wesley W. Terpstra
Browse files
Options
Downloads
Patches
Plain Diff
bootp: report IP in WR gui
parent
ea62c7d7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
monitor/monitor.c
+14
-0
14 additions, 0 deletions
monitor/monitor.c
with
14 additions
and
0 deletions
monitor/monitor.c
+
14
−
0
View file @
392a6317
...
...
@@ -19,6 +19,8 @@
#include
"util.h"
#include
"syscon.h"
#include
"onewire.h"
#include
"lib/ipv4.h"
#define UI_REFRESH_PERIOD TICS_PER_SECOND
/* 1 sec */
...
...
@@ -33,6 +35,9 @@ void wrc_mon_gui(void)
int
aux_stat
;
uint64_t
sec
;
uint32_t
nsec
;
#ifdef CONFIG_ETHERBONE
uint8_t
ip
[
4
];
#endif
if
(
timer_get_tics
()
-
last
<
UI_REFRESH_PERIOD
)
return
;
...
...
@@ -81,6 +86,15 @@ void wrc_mon_gui(void)
else
cprintf
(
C_RED
,
"Uncalibrated "
);
#ifdef CONFIG_ETHERBONE
cprintf
(
C_WHITE
,
"
\n
IPv4: "
);
getIP
(
ip
);
if
(
needIP
)
cprintf
(
C_RED
,
"BOOTP running"
);
else
cprintf
(
C_GREEN
,
"%d.%d.%d.%d"
,
ip
[
0
],
ip
[
1
],
ip
[
2
],
ip
[
3
]);
#endif
/* show_servo */
cprintf
(
C_BLUE
,
"
\n\n
Synchronization status:
\n\n
"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment