Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr-switch-sw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
white-rabbit
wr-switch-sw
Commits
74a168c8
Commit
74a168c8
authored
Feb 20, 2014
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
green LED should light up only when HAL is fine too
parent
cd46c8cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
init.c
userspace/libswitchhw/init.c
+0
-4
hal_main.c
userspace/wrsw_hal/hal_main.c
+5
-0
No files found.
userspace/libswitchhw/init.c
View file @
74a168c8
...
...
@@ -30,10 +30,6 @@ int shw_init()
/* Init the FANs */
assert_init
(
shw_init_fans
());
/* Finally setup the green led */
shw_io_write
(
shw_io_led_state_o
,
0
);
shw_io_write
(
shw_io_led_state_g
,
1
);
TRACE
(
TRACE_INFO
,
"HW initialization done!"
);
}
...
...
userspace/wrsw_hal/hal_main.c
View file @
74a168c8
...
...
@@ -198,6 +198,11 @@ int hal_init()
/* Create a WRIPC server for HAL public API */
assert_init
(
hal_init_wripc
());
//everything is fine up to here, we can blink green LED
shw_io_write
(
shw_io_led_state_o
,
0
);
shw_io_write
(
shw_io_led_state_g
,
1
);
if
(
daemon_mode
)
hal_deamonize
();
...
...
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