Disable MT9V034 and LEPTON for OMV1/2/3.

This commit is contained in:
iabdalkader 2018-05-30 20:10:45 +02:00
parent 573b362626
commit 3e0b605bea
3 changed files with 18 additions and 1 deletions

View File

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

View File

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

View File

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