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
153b52bb
Commit
153b52bb
authored
Feb 24, 2016
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sm_io/*/fmc250m_4ch/*: add RST ADCs and RST DIC ADCs to default config
parent
0e9407c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
sm_io_fmc250m_4ch_defaults.c
src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_defaults.c
+8
-0
sm_io_fmc250m_4ch_defaults.h
src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_defaults.h
+3
-0
No files found.
src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_defaults.c
View file @
153b52bb
...
...
@@ -84,6 +84,14 @@ smio_err_e fmc250m_4ch_config_defaults (char *broker_endp, char *service,
ASSERT_TEST
(
client_err
==
BPM_CLIENT_SUCCESS
,
"Could not enable SI571 Output"
,
err_param_set
,
SMIO_ERR_CONFIG_DFLT
);
client_err
=
bpm_set_rst_adcs
(
config_client
,
service
,
FMC250M_4CH_DFLT_RST_ADCS
);
ASSERT_TEST
(
client_err
==
BPM_CLIENT_SUCCESS
,
"Could not reset ADCs"
,
err_param_set
,
SMIO_ERR_CONFIG_DFLT
);
client_err
=
bpm_set_rst_div_adcs
(
config_client
,
service
,
FMC250M_4CH_DFLT_RST_DIV_ADCS
);
ASSERT_TEST
(
client_err
==
BPM_CLIENT_SUCCESS
,
"Could not reset DIV CLK ADCs"
,
err_param_set
,
SMIO_ERR_CONFIG_DFLT
);
err_param_set:
bpm_client_destroy
(
&
config_client
);
err_alloc_client:
...
...
src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_defaults.h
View file @
153b52bb
...
...
@@ -21,6 +21,9 @@
#define FMC250M_4CH_DFLT_SI57X_FOUT_FACTORY SI57X_FOUT_FACTORY_DFLT
#define FMC250M_4CH_DFLT_SI57X_FOUT 113040445
/* 113.040445 MHz default */
#define FMC250M_4CH_DFLT_RST_ADCS 0x1
#define FMC250M_4CH_DFLT_RST_DIV_ADCS 0x1
smio_err_e
fmc250m_4ch_config_defaults
(
char
*
broker_endp
,
char
*
service
,
const
char
*
log_file_name
);
...
...
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