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:
Kwabena W. Agyeman 2025-06-27 18:11:13 -07:00
parent 7d2b334066
commit aa96e88376
3 changed files with 7 additions and 0 deletions

View File

@ -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.

View File

@ -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)

View File

@ -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;
}