Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
FMC ADC 100M 14b 4cha - Software
Commits
d63b8c7b
Commit
d63b8c7b
authored
Mar 20, 2013
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[debug] add more debug information
parent
b62117ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
fa-zio-drv.c
kernel/fa-zio-drv.c
+4
-2
fa-zio-trg.c
kernel/fa-zio-trg.c
+4
-1
No files found.
kernel/fa-zio-drv.c
View file @
d63b8c7b
...
...
@@ -287,10 +287,10 @@ int zfad_fsm_command(struct fa_dev *fa, uint32_t command)
/* Now we can arm the trigger for the incoming acquisition */
zio_arm_trigger
(
fa
->
zdev
->
cset
->
ti
);
dev_dbg
(
fa
->
fmc
->
hwdev
,
"Enable interrupts
\n
"
);
dev_dbg
(
fa
->
fmc
->
hwdev
,
"
FSM START Command,
Enable interrupts
\n
"
);
zfa_common_conf_set
(
fa
,
ZFA_IRQ_MASK
,
ZFAT_ALL
);
}
else
{
dev_dbg
(
fa
->
fmc
->
hwdev
,
"Disable interrupts
\n
"
);
dev_dbg
(
fa
->
fmc
->
hwdev
,
"
FSM STOP Command,
Disable interrupts
\n
"
);
zfa_common_conf_set
(
fa
,
ZFA_IRQ_MASK
,
ZFAT_NONE
);
}
...
...
@@ -357,6 +357,8 @@ static int zfad_calibration(struct fa_dev *fa, struct zio_channel *chan,
if
(
range
<
0
)
return
range
;
dev_dbg
(
&
chan
->
head
.
dev
,
"Set offset and gain for range 0x%x (%d)
\n
"
,
usr_val
,
range
);
/* Apply the ADC calibration value for the offset */
i
=
zfad_get_chx_index
(
ZFA_CHx_OFFSET
,
chan
);
cal_val
=
fa
->
adc_cal_data
[
range
].
offset
[
chan
->
index
];
...
...
kernel/fa-zio-trg.c
View file @
d63b8c7b
...
...
@@ -228,7 +228,9 @@ static int zfat_data_done(struct zio_cset *cset)
i
+
1
,
fa
->
n_shots
);
bi
->
b_op
->
store_block
(
bi
,
zfad_block
[
i
].
block
);
}
else
{
/* Free un-filled blocks */
dev_dbg
(
fa
->
fmc
->
hwdev
,
"Free un-acquired block
\n
"
);
dev_dbg
(
fa
->
fmc
->
hwdev
,
"Free un-acquired block %d/%d "
"(received %d shots)
\n
"
,
i
+
1
,
fa
->
n_shots
,
fa
->
n_fires
);
bi
->
b_op
->
free_block
(
bi
,
zfad_block
[
i
].
block
);
}
/* Clear active block */
...
...
@@ -335,6 +337,7 @@ static void zfat_abort(struct zio_ti *ti)
struct
zfad_block
*
zfad_block
=
cset
->
interleave
->
priv_d
;
unsigned
int
i
;
dev_dbg
(
&
ti
->
head
.
dev
,
"Aborting trigger"
);
/* Free all blocks */
for
(
i
=
0
;
i
<
fa
->
n_shots
;
++
i
)
bi
->
b_op
->
free_block
(
bi
,
zfad_block
[
i
].
block
);
...
...
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