mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Disable MT9V034 and LEPTON for OMV1/2/3.
This commit is contained in:
parent
573b362626
commit
3e0b605bea
@ -40,6 +40,10 @@
|
||||
// Enable hardware JPEG
|
||||
#define OMV_HARDWARE_JPEG (1)
|
||||
|
||||
// Enable MT9V034 and LEPTON sensors
|
||||
#define OMV_ENABLE_MT9V034 (1)
|
||||
#define OMV_ENABLE_LEPTON (1)
|
||||
|
||||
// If buffer size is bigger than this threshold, the quality is reduced.
|
||||
// This is only used for JPEG images sent to the IDE not normal compression.
|
||||
#define JPEG_QUALITY_THRESH (320*240*2)
|
||||
|
||||
@ -14,6 +14,7 @@
|
||||
#include "framebuffer.h"
|
||||
#include "omv_boardconfig.h"
|
||||
|
||||
#if defined(OMV_ENABLE_LEPTON)
|
||||
#include "crc16.h"
|
||||
#include "LEPTON_SDK.h"
|
||||
#include "LEPTON_AGC.h"
|
||||
@ -551,3 +552,9 @@ int lepton_init(sensor_t *sensor)
|
||||
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
int lepton_init(sensor_t *sensor)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
#endif //defined(OMV_ENABLE_LEPTON)
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
#include "systick.h"
|
||||
#include "framebuffer.h"
|
||||
#include "omv_boardconfig.h"
|
||||
|
||||
#if defined(OMV_ENABLE_MT9V034)
|
||||
#define MT9V034_MAX_HEIGHT (480)
|
||||
#define MT9V034_MAX_WIDTH (752)
|
||||
#define MT9V034_CHIP_VERSION (0x00)
|
||||
@ -541,3 +541,9 @@ int mt9v034_init(sensor_t *sensor)
|
||||
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
int mt9v034_init(sensor_t *sensor)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
#endif //defined(OMV_ENABLE_MT9V034)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user