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
3a9c741a
Commit
3a9c741a
authored
Feb 12, 2015
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hal/sm_io/*/fmc130m_4ch/*_defaults.*: add CLK_SEL and TRIG_DIR default values
parent
89978e08
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
sm_io_fmc130m_4ch_defaults.c
hal/sm_io/modules/fmc130m_4ch/sm_io_fmc130m_4ch_defaults.c
+8
-0
sm_io_fmc130m_4ch_defaults.h
hal/sm_io/modules/fmc130m_4ch/sm_io_fmc130m_4ch_defaults.h
+3
-1
No files found.
hal/sm_io/modules/fmc130m_4ch/sm_io_fmc130m_4ch_defaults.c
View file @
3a9c741a
...
...
@@ -53,6 +53,14 @@ smio_err_e fmc130m_4ch_config_defaults (char *broker_endp, char *service,
ASSERT_TEST
(
client_err
==
BPM_CLIENT_SUCCESS
,
"Could not set FMC PLL function"
,
err_param_set
,
SMIO_ERR_CONFIG_DFLT
);
client_err
=
bpm_set_fmc_clk_sel
(
config_client
,
service
,
FMC130M_4CH_DFLT_CLK_SEL
);
ASSERT_TEST
(
client_err
==
BPM_CLIENT_SUCCESS
,
"Could not set FMC CLK SEL function"
,
err_param_set
,
SMIO_ERR_CONFIG_DFLT
);
client_err
=
bpm_set_trig_dir
(
config_client
,
service
,
FMC130M_4CH_DFLT_TRIG_DIR
);
ASSERT_TEST
(
client_err
==
BPM_CLIENT_SUCCESS
,
"Could not set FMC TRIG DIR function"
,
err_param_set
,
SMIO_ERR_CONFIG_DFLT
);
client_err
=
bpm_ad9510_cfg_defaults
(
config_client
,
service
);
ASSERT_TEST
(
client_err
==
BPM_CLIENT_SUCCESS
||
client_err
==
BPM_CLIENT_ERR_AGAIN
,
"Could not configure AD9510"
,
...
...
hal/sm_io/modules/fmc130m_4ch/sm_io_fmc130m_4ch_defaults.h
View file @
3a9c741a
...
...
@@ -13,7 +13,9 @@
#include "sm_ch_pca9547.h"
#define FMC130M_4CH_DFLT_PLL_FUNC 0x1
#define FMC130M_4CH_DFLT_PCA9547_CFG SMCH_PCA9547_NO_CHANNEL
/* No channel selected */
#define FMC130M_4CH_DFLT_CLK_SEL 0x0
/* Clock from FMC front panel */
#define FMC130M_4CH_DFLT_TRIG_DIR 0x0
/* Output direction */
#define FMC130M_4CH_DFLT_PCA9547_CFG SMCH_PCA9547_NO_CHANNEL
/* No channel selected */
#define FMC130M_4CH_DFLT_SI571_OE 0x1
#define FMC130M_4CH_DFLT_SI57X_FOUT_FACTORY SI57X_FOUT_FACTORY_DFLT
...
...
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