Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Beam Positoning Monitor - Software
Commits
f00f97ae
Commit
f00f97ae
authored
May 27, 2015
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/sm_io/modules/*/*defaults.c: add BPM client creation checking
parent
bb50e84f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
0 deletions
+20
-0
sm_io_afc_diag_defaults.c
src/sm_io/modules/afc_diag/sm_io_afc_diag_defaults.c
+4
-0
sm_io_dsp_defaults.c
src/sm_io/modules/dsp/sm_io_dsp_defaults.c
+4
-0
sm_io_fmc130m_4ch_defaults.c
src/sm_io/modules/fmc130m_4ch/sm_io_fmc130m_4ch_defaults.c
+4
-0
sm_io_rffe_defaults.c
src/sm_io/modules/rffe/sm_io_rffe_defaults.c
+4
-0
sm_io_swap_defaults.c
src/sm_io/modules/swap/sm_io_swap_defaults.c
+4
-0
No files found.
src/sm_io/modules/afc_diag/sm_io_afc_diag_defaults.c
View file @
f00f97ae
...
...
@@ -47,6 +47,7 @@ smio_err_e afc_diag_config_defaults (char *broker_endp, char *service,
bpm_client_t
*
config_client
=
bpm_client_new_log_mode
(
broker_endp
,
0
,
log_file_name
,
SMIO_AFC_DIAG_LIBBPMCLIENT_LOG_MODE
);
ASSERT_ALLOC
(
config_client
,
err_alloc_client
);
uint32_t
card_slot
=
0
;
client_err
=
bpm_get_afc_diag_card_slot
(
config_client
,
service
,
&
card_slot
);
...
...
@@ -60,5 +61,8 @@ smio_err_e afc_diag_config_defaults (char *broker_endp, char *service,
err_param_get:
bpm_client_destroy
(
&
config_client
);
err_alloc_client:
DBE_DEBUG
(
DBG_SM_IO
|
DBG_LVL_INFO
,
"[sm_io:afc_diag_defaults] Exiting Config thread %s
\n
"
,
service
);
return
err
;
}
src/sm_io/modules/dsp/sm_io_dsp_defaults.c
View file @
f00f97ae
...
...
@@ -48,6 +48,7 @@ smio_err_e dsp_config_defaults (char *broker_endp, char *service,
bpm_client_t
*
config_client
=
bpm_client_new_log_mode
(
broker_endp
,
0
,
log_file_name
,
SMIO_DSP_LIBBPMCLIENT_LOG_MODE
);
ASSERT_ALLOC
(
config_client
,
err_alloc_client
);
client_err
=
bpm_set_kx
(
config_client
,
service
,
DSP_DFLT_KX_VAL
);
ASSERT_TEST
(
client_err
==
BPM_CLIENT_SUCCESS
,
"Could not set KX value"
,
...
...
@@ -75,5 +76,8 @@ smio_err_e dsp_config_defaults (char *broker_endp, char *service,
err_param_set:
bpm_client_destroy
(
&
config_client
);
err_alloc_client:
DBE_DEBUG
(
DBG_SM_IO
|
DBG_LVL_INFO
,
"[sm_io:dsp_defaults] Exiting Config thread %s
\n
"
,
service
);
return
err
;
}
src/sm_io/modules/fmc130m_4ch/sm_io_fmc130m_4ch_defaults.c
View file @
f00f97ae
...
...
@@ -48,6 +48,7 @@ smio_err_e fmc130m_4ch_config_defaults (char *broker_endp, char *service,
bpm_client_t
*
config_client
=
bpm_client_new_log_mode
(
broker_endp
,
0
,
log_file_name
,
SMIO_FMC130M_4CH_LIBBPMCLIENT_LOG_MODE
);
ASSERT_ALLOC
(
config_client
,
err_alloc_client
);
client_err
=
bpm_set_fmc_pll_function
(
config_client
,
service
,
FMC130M_4CH_DFLT_PLL_FUNC
);
ASSERT_TEST
(
client_err
==
BPM_CLIENT_SUCCESS
,
"Could not set FMC PLL function"
,
...
...
@@ -80,5 +81,8 @@ smio_err_e fmc130m_4ch_config_defaults (char *broker_endp, char *service,
err_param_set:
bpm_client_destroy
(
&
config_client
);
err_alloc_client:
DBE_DEBUG
(
DBG_SM_IO
|
DBG_LVL_INFO
,
"[sm_io:fmc130m_4ch_defaults] Exiting Config thread %s
\n
"
,
service
);
return
err
;
}
src/sm_io/modules/rffe/sm_io_rffe_defaults.c
View file @
f00f97ae
...
...
@@ -47,6 +47,7 @@ smio_err_e rffe_config_defaults (char *broker_endp, char *service,
bpm_client_t
*
config_client
=
bpm_client_new_log_mode
(
broker_endp
,
0
,
log_file_name
,
SMIO_RFFE_LIBBPMCLIENT_LOG_MODE
);
ASSERT_ALLOC
(
config_client
,
err_alloc_client
);
client_err
=
bpm_set_rffe_sw
(
config_client
,
service
,
RFFE_DFLT_SW
);
ASSERT_TEST
(
client_err
==
BPM_CLIENT_SUCCESS
,
"Could not set RFFE switching value"
,
...
...
@@ -62,5 +63,8 @@ smio_err_e rffe_config_defaults (char *broker_endp, char *service,
err_param_set:
bpm_client_destroy
(
&
config_client
);
err_alloc_client:
DBE_DEBUG
(
DBG_SM_IO
|
DBG_LVL_INFO
,
"[sm_io:rffe_defaults] Exiting Config thread %s
\n
"
,
service
);
return
err
;
}
src/sm_io/modules/swap/sm_io_swap_defaults.c
View file @
f00f97ae
...
...
@@ -48,6 +48,7 @@ smio_err_e swap_config_defaults (char *broker_endp, char *service,
bpm_client_t
*
config_client
=
bpm_client_new_log_mode
(
broker_endp
,
0
,
log_file_name
,
SMIO_SWAP_LIBBPMCLIENT_LOG_MODE
);
ASSERT_ALLOC
(
config_client
,
err_alloc_client
);
client_err
=
bpm_set_sw
(
config_client
,
service
,
SWAP_DFLT_SW
);
ASSERT_TEST
(
client_err
==
BPM_CLIENT_SUCCESS
,
"Could not set switching state"
,
...
...
@@ -79,5 +80,8 @@ smio_err_e swap_config_defaults (char *broker_endp, char *service,
err_param_set:
bpm_client_destroy
(
&
config_client
);
err_alloc_client:
DBE_DEBUG
(
DBG_SM_IO
|
DBG_LVL_INFO
,
"[sm_io:swap_defaults] Exiting Config thread %s
\n
"
,
service
);
return
err
;
}
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