mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
drivers/sensors: Fix PAJ6100 on the OpenMV H7/P.
When set_framesize is called it causes the DCMI hardware to lockup unless it's reconfigured.
This commit is contained in:
parent
7d2b334066
commit
aa96e88376
@ -62,6 +62,7 @@
|
||||
#define OMV_LEPTON_ENABLE (1)
|
||||
#define OMV_PAG7920_ENABLE (1)
|
||||
#define OMV_PAJ6100_ENABLE (1)
|
||||
#define OMV_PAJ6100_GLITCH_RECONFIG (1)
|
||||
#define OMV_FROGEYE2020_ENABLE (1)
|
||||
|
||||
// FIR drivers configuration.
|
||||
|
||||
@ -48,6 +48,7 @@
|
||||
#define OMV_LEPTON_ENABLE (1)
|
||||
#define OMV_PAG7920_ENABLE (1)
|
||||
#define OMV_PAJ6100_ENABLE (1)
|
||||
#define OMV_PAJ6100_GLITCH_RECONFIG (1)
|
||||
#define OMV_FROGEYE2020_ENABLE (1)
|
||||
#define OMV_GENX320_EHC_ENABLE (1)
|
||||
|
||||
|
||||
@ -446,6 +446,11 @@ static int set_framesize(omv_csi_t *csi, omv_csi_framesize_t framesize) {
|
||||
lt_lockrange_out_ubound = (L_TARGET + AE_LOCK_RANGE_OUT) * w * h;
|
||||
lt_lockrange_out_lbound = (L_TARGET - AE_LOCK_RANGE_OUT) * w * h;
|
||||
|
||||
// PAJ6100 crashes CSI hardware unless we recongfigure it.
|
||||
#if (OMV_PAJ6100_GLITCH_RECONFIG == 1)
|
||||
csi->config(csi, OMV_CSI_CONFIG_INIT);
|
||||
#endif // (OMV_PAJ6100_GLITCH_RECONFIG == 1)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user