Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-elphel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
linux-elphel
Commits
4712e4e6
Commit
4712e4e6
authored
Apr 10, 2022
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated to the modified x393
parent
2ca21075
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
pgm_functions.c
src/drivers/elphel/pgm_functions.c
+4
-1
No files found.
src/drivers/elphel/pgm_functions.c
View file @
4712e4e6
...
@@ -2557,6 +2557,7 @@ int pgm_trigseq (int sensor_port, ///< sensor port number (0..3
...
@@ -2557,6 +2557,7 @@ int pgm_trigseq (int sensor_port, ///< sensor port number (0..3
x393_camsync_io_t
camsync_dst
=
{.
d32
=
0
};
x393_camsync_io_t
camsync_dst
=
{.
d32
=
0
};
x393_gpio_set_pins_t
gpio_set_pins
=
{.
d32
=
0
};
x393_gpio_set_pins_t
gpio_set_pins
=
{.
d32
=
0
};
x393_camsync_mode_t
camsync_mode
=
{.
d32
=
0
};
x393_camsync_mode_t
camsync_mode
=
{.
d32
=
0
};
x393_camsync_decimate_t
camsync_decimate
=
{.
d32
=
0
};
// 04/09/2022
dev_dbg
(
g_dev_ptr
,
"{%d} pgm_trigseq(): frame16=%d
\n
"
,
sensor_port
,
frame16
);
dev_dbg
(
g_dev_ptr
,
"{%d} pgm_trigseq(): frame16=%d
\n
"
,
sensor_port
,
frame16
);
MDP
(
DBGB_PSFN
,
sensor_port
,
"frame16=%d
\n
"
,
frame16
)
MDP
(
DBGB_PSFN
,
sensor_port
,
"frame16=%d
\n
"
,
frame16
)
if
(
frame16
>=
PARS_FRAMES
)
return
-
1
;
// wrong frame
if
(
frame16
>=
PARS_FRAMES
)
return
-
1
;
// wrong frame
...
@@ -2584,7 +2585,9 @@ int pgm_trigseq (int sensor_port, ///< sensor port number (0..3
...
@@ -2584,7 +2585,9 @@ int pgm_trigseq (int sensor_port, ///< sensor port number (0..3
/// set_x393_camsync_trig_period(thispars->pars[P_TRIG_DECIMATE]);
/// set_x393_camsync_trig_period(thispars->pars[P_TRIG_DECIMATE]);
/// dev_dbg(g_dev_ptr,"{%d} set_x393_camsync_trig_period(0x%lx)\n",sensor_port, thispars->pars[P_TRIG_DECIMATE]);
/// dev_dbg(g_dev_ptr,"{%d} set_x393_camsync_trig_period(0x%lx)\n",sensor_port, thispars->pars[P_TRIG_DECIMATE]);
/// MDP(DBGB_PADD, sensor_port,"set_x393_camsync_trig_decimation(0x%lx)\n", thispars->pars[P_TRIG_DECIMATE])
/// MDP(DBGB_PADD, sensor_port,"set_x393_camsync_trig_decimation(0x%lx)\n", thispars->pars[P_TRIG_DECIMATE])
X393_SEQ_SEND1
(
sensor_port
,
frame16
,
x393_camsync_trig_decimation
,
thispars
->
pars
[
P_TRIG_DECIMATE
]);
camsync_decimate
.
d32
=
thispars
->
pars
[
P_TRIG_DECIMATE
];
// 04/09/2022
// X393_SEQ_SEND1 (sensor_port, frame16, x393_camsync_trig_decimation, thispars->pars[P_TRIG_DECIMATE]);
X393_SEQ_SEND1
(
sensor_port
,
frame16
,
x393_camsync_trig_decimation
,
camsync_decimate
);
// 04/09/2022
dev_dbg
(
g_dev_ptr
,
"{%d} X3X3_SEQ_SEND1(0x%x, 0x%x, x393_camsync_trig_decimation, 0x%x)
\n
"
,
dev_dbg
(
g_dev_ptr
,
"{%d} X3X3_SEQ_SEND1(0x%x, 0x%x, x393_camsync_trig_decimation, 0x%x)
\n
"
,
sensor_port
,
sensor_port
,
frame16
,
(
int
)
thispars
->
pars
[
P_TRIG_DECIMATE
]);
sensor_port
,
sensor_port
,
frame16
,
(
int
)
thispars
->
pars
[
P_TRIG_DECIMATE
]);
}
}
...
...
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