Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
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
White Rabbit Switch - Software
Commits
97f30bb3
Commit
97f30bb3
authored
Apr 25, 2012
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace/wrsw_hal: start IPC server after initializing the ports
parent
38ce673e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
hal_main.c
userspace/wrsw_hal/hal_main.c
+8
-4
No files found.
userspace/wrsw_hal/hal_main.c
View file @
97f30bb3
...
...
@@ -154,6 +154,8 @@ int hal_shutdown()
return
0
;
}
void
hal_deamonize
();
/* Main initialization function */
int
hal_init
()
{
...
...
@@ -188,11 +190,14 @@ int hal_init()
assert_init
(
hal_init_timing
());
/* Initialize port FSMs - see hal_ports.c */
assert_init
(
hal_init_ports
());
/* Create a WRIPC server for HAL public API */
assert_init
(
hal_init_wripc
());
/* Initialize port FSMs - see hal_ports.c */
assert_init
(
hal_init_ports
()
);
if
(
daemon_mode
)
hal_deamonize
(
);
return
0
;
}
...
...
@@ -294,6 +299,7 @@ void hal_parse_cmdline(int argc, char *argv[])
int
main
(
int
argc
,
char
*
argv
[])
{
trace_log_file
(
"/hal_log"
);
/* Prevent from running HAL twice - this will likely freeze the system */
if
(
hal_check_running
())
{
...
...
@@ -305,8 +311,6 @@ int main(int argc, char *argv[])
hal_init
();
if
(
daemon_mode
)
hal_deamonize
();
for
(;;)
hal_update
();
hal_shutdown
();
...
...
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