285 lines
6.1 KiB
C
Executable File
285 lines
6.1 KiB
C
Executable File
/**
|
|
Copyright Novatek Microelectronics Corp. 2020. All rights reserved.
|
|
|
|
@file PrjCfg_Default.h
|
|
@ingroup
|
|
|
|
@brief
|
|
|
|
@note This config genernate default config where isn't set in PrjCfg_MODEL.h
|
|
*/
|
|
|
|
#ifndef _PRJCFG_DEFAULT_H_
|
|
#define _PRJCFG_DEFAULT_H_
|
|
|
|
#ifndef VOICE_MODE
|
|
#define VOICE_MODE DISABLE
|
|
#endif
|
|
|
|
#ifndef MOVIE_DIRECT_FUNC
|
|
#define MOVIE_DIRECT_FUNC DISABLE
|
|
#endif
|
|
|
|
#ifndef PHOTO_DIRECT_FUNC
|
|
#define PHOTO_DIRECT_FUNC DISABLE
|
|
#endif
|
|
|
|
#ifndef PHOTO_PREVIEW_SLICE_ENC_FUNC
|
|
#define PHOTO_PREVIEW_SLICE_ENC_FUNC DISABLE
|
|
#endif
|
|
|
|
#if (PHOTO_DIRECT_FUNC == ENABLE)
|
|
#if (PHOTO_PREVIEW_SLICE_ENC_FUNC == DISABLE)
|
|
#undef PHOTO_PREVIEW_SLICE_ENC_FUNC
|
|
#define PHOTO_PREVIEW_SLICE_ENC_FUNC ENABLE
|
|
#endif
|
|
#endif
|
|
|
|
#if (PHOTO_PREVIEW_SLICE_ENC_FUNC == ENABLE)
|
|
#if (PHOTO_DIRECT_FUNC == DISABLE)
|
|
#undef PHOTO_DIRECT_FUNC
|
|
#define PHOTO_DIRECT_FUNC ENABLE
|
|
#endif
|
|
#endif
|
|
|
|
#ifndef ETH_REARCAM_CAPS_COUNT
|
|
#define ETH_REARCAM_CAPS_COUNT 0
|
|
#endif
|
|
|
|
#ifndef ETH_REARCAM_CLONE_FOR_DISPLAY
|
|
#define ETH_REARCAM_CLONE_FOR_DISPLAY DISABLE
|
|
#endif
|
|
|
|
#ifndef ETH_REARCAM_TX_IQTOOL
|
|
#define ETH_REARCAM_TX_IQTOOL DISABLE
|
|
#endif
|
|
|
|
#ifndef ETHCAM_EIS
|
|
#define ETHCAM_EIS DISABLE
|
|
#endif
|
|
|
|
#ifndef WATERLOGO_FUNCTION
|
|
#define WATERLOGO_FUNCTION DISABLE // Enable/Disable waterlogo function
|
|
#endif
|
|
|
|
#ifndef MOVIE_DATESTAMP_FUNC
|
|
#define MOVIE_DATESTAMP_FUNC ENABLE
|
|
#endif
|
|
|
|
#ifndef MOVIE_MULTISTAMP_FUNC
|
|
#define MOVIE_MULTISTAMP_FUNC DISABLE
|
|
#endif
|
|
|
|
#ifndef MOVIE_MULTIWATERLOGO_FUNC
|
|
#define MOVIE_MULTIWATERLOGO_FUNC DISABLE
|
|
#endif
|
|
|
|
#if (SENSOR_CAPS_COUNT == 1)
|
|
#if (!defined(_SENSOR1_sen_off_))
|
|
#define SENSOR_ON_MASK (SENSOR_1)
|
|
#elif (!defined(_SENSOR2_sen_off_))
|
|
#define SENSOR_ON_MASK (SENSOR_2)
|
|
#else
|
|
#define SENSOR_ON_MASK (0)
|
|
#endif
|
|
#elif (SENSOR_CAPS_COUNT == 2)
|
|
#if (!defined(_SENSOR1_sen_off_) && !defined(_SENSOR2_sen_off_))
|
|
#define SENSOR_ON_MASK (SENSOR_1|SENSOR_2)
|
|
#else
|
|
#define SENSOR_ON_MASK (0)
|
|
#endif
|
|
#elif (SENSOR_CAPS_COUNT == 3)
|
|
#if (!defined(_SENSOR1_sen_off_) && !defined(_SENSOR2_sen_off_) && !defined(_SENSOR3_sen_off_))
|
|
#define SENSOR_ON_MASK (SENSOR_1|SENSOR_2|SENSOR_3)
|
|
#else
|
|
#define SENSOR_ON_MASK (0)
|
|
#endif
|
|
#else
|
|
#define SENSOR_ON_MASK (0)
|
|
#endif
|
|
|
|
#ifndef MOVIE_DIS
|
|
#define MOVIE_DIS DISABLE
|
|
#endif
|
|
|
|
#ifndef MOVIE_DIS_RATIO
|
|
#define MOVIE_DIS_RATIO 1100
|
|
#endif
|
|
|
|
#ifndef SENSOR_SIEPATGEN
|
|
#define SENSOR_SIEPATGEN DISABLE
|
|
#endif
|
|
#ifndef LOGFILE_FUNC
|
|
#define LOGFILE_FUNC DISABLE
|
|
#endif
|
|
|
|
#ifndef USER_PACK_UPDATE
|
|
#define USER_PACK_UPDATE DISABLE
|
|
#endif
|
|
|
|
#ifndef WAV_PLAY_FUNC
|
|
#define WAV_PLAY_FUNC DISABLE
|
|
#endif
|
|
|
|
#ifndef MOVIE_IME_CROP
|
|
#define MOVIE_IME_CROP DISABLE
|
|
#endif
|
|
|
|
#ifndef PHOTO_IME_CROP
|
|
#define PHOTO_IME_CROP DISABLE
|
|
#endif
|
|
|
|
#ifndef PLAY_FULL_DISP
|
|
#define PLAY_FULL_DISP DISABLE
|
|
#endif
|
|
|
|
#ifndef PHOTO_MODE_CAP_YUV420_FUNC
|
|
#define PHOTO_MODE_CAP_YUV420_FUNC ENABLE
|
|
#endif
|
|
|
|
#ifndef PLAY_THUMB_AND_MOVIE
|
|
#define PLAY_THUMB_AND_MOVIE DISABLE
|
|
#endif
|
|
|
|
#ifndef DRAM_SIZE_64MB_DISP_OFF
|
|
#define DRAM_SIZE_64MB_DISP_OFF DISABLE
|
|
#endif
|
|
|
|
#ifndef DZOOM_FUNC
|
|
#define DZOOM_FUNC DISABLE
|
|
#endif
|
|
|
|
#ifndef ANR_FUNC
|
|
#define ANR_FUNC DISABLE
|
|
#endif
|
|
|
|
#ifndef USER_SPI_NOR_TABLE
|
|
#define USER_SPI_NOR_TABLE DISABLE
|
|
#endif
|
|
|
|
#ifndef USB_CDC_DBG
|
|
#define USB_CDC_DBG DISABLE
|
|
#endif
|
|
|
|
// boot
|
|
#ifndef POWERON_FAST_BOOT
|
|
#define POWERON_FAST_BOOT ENABLE ///< enable to use multi-thread init
|
|
#endif
|
|
|
|
#ifndef POWERON_FAST_BOOT_MSG
|
|
#define POWERON_FAST_BOOT_MSG ENABLE ///< disable boot msg for fast boot, but hard to debug
|
|
#endif
|
|
|
|
#ifndef POWERON_BOOT_REPORT
|
|
#define POWERON_BOOT_REPORT DISABLE ///< enable to show report after booting
|
|
#endif
|
|
|
|
#ifndef POWERON_EXAM_FLASH_LOAD
|
|
#define POWERON_EXAM_FLASH_LOAD DISABLE ///< exam load 16MB data from flash
|
|
#endif
|
|
|
|
#ifndef MOVIE_YUV_COMPRESS
|
|
#define MOVIE_YUV_COMPRESS DISABLE
|
|
#endif
|
|
|
|
/*******************************************************************************************
|
|
* HUNTING Default Begin
|
|
******************************************************************************************/
|
|
#ifndef HUNTING_CAMERA_MODEL
|
|
#define HUNTING_CAMERA_MODEL DISABLE
|
|
#endif
|
|
|
|
#ifndef HUNTING_CAMERA_USE_DCF
|
|
#define HUNTING_CAMERA_USE_DCF DISABLE
|
|
#endif
|
|
#ifndef HUNTING_CAMERA_SYS_PARTITION_NAME
|
|
#define HUNTING_CAMERA_SYS_PARTITION_NAME sys
|
|
#endif
|
|
|
|
/*******************************************************************************************
|
|
* HUNTING Default End
|
|
******************************************************************************************/
|
|
|
|
|
|
#ifndef ALG_FUNC_AI2
|
|
#define ALG_FUNC_AI2 DISABLE
|
|
#endif
|
|
|
|
//#NT#20220503#Philex lin -begin
|
|
// power saving marco
|
|
#ifndef USB_POWER_DISABLE
|
|
#define USB_POWER_DISABLE DISABLE
|
|
#endif
|
|
|
|
#ifndef ETH_POWER_DISABLE
|
|
#if (defined(_NVT_ETHREARCAM_TX_)||defined(_NVT_ETHREARCAM_RX_))
|
|
#define ETH_POWER_DISABLE DISABLE
|
|
#else
|
|
#define ETH_POWER_DISABLE ENABLE
|
|
#endif
|
|
#endif
|
|
|
|
#ifndef GDC_POWER_DISABLE
|
|
#define GDC_POWER_DISABLE ENABLE
|
|
#endif
|
|
//#NT#20220503#Philex lin -end
|
|
|
|
// seletc boot mode
|
|
#define POWERON_MODE_NONE 0
|
|
#define POWERON_MODE_PREVIEW 1 ///< fast preview
|
|
#define POWERON_MODE_ENCODE 2 ///< fast encode
|
|
#define POWERON_MODE_BOOT_LINUX 3 ///< fast boot linux (only for cfg_RTOS_BOOT_LINUX_EVB)
|
|
|
|
#define POWERON_MODE POWERON_MODE_PREVIEW
|
|
|
|
#ifndef POWERON_FAST_SLICE_ENC
|
|
#define POWERON_FAST_SLICE_ENC DISABLE
|
|
#endif
|
|
|
|
#ifndef HUNTING_CAMERA_BOOT_LINUX
|
|
#define HUNTING_CAMERA_BOOT_LINUX DISABLE
|
|
#endif
|
|
|
|
#ifndef POWERON_FAST_SLICE_ENC_VER2
|
|
#define POWERON_FAST_SLICE_ENC_VER2 DISABLE
|
|
#endif
|
|
|
|
#ifndef DCF_DIR_NAME
|
|
#define DCF_DIR_NAME "HUNTI" /* 100HUNTI */
|
|
#endif
|
|
|
|
#ifndef DCF_FILE_NAME
|
|
#define DCF_FILE_NAME "IMAG" /* IMAG0001.JPG */
|
|
#endif
|
|
|
|
#ifndef HUNTING_MCU_I2C
|
|
#define HUNTING_MCU_I2C DISABLE
|
|
#endif
|
|
|
|
#ifndef HUNTING_MCU_UART
|
|
#define HUNTING_MCU_UART ENABLE
|
|
#endif
|
|
|
|
#ifndef HUNTING_IR_LED_940
|
|
#define HUNTING_IR_LED_940 ENABLE//DISABLE
|
|
#endif
|
|
|
|
#ifndef SF_BASE_VERSION
|
|
#define SF_BASE_VERSION "7MD4RCwD3T2"
|
|
#endif
|
|
|
|
#ifndef HUNTING_PHOTO_FAST_AE_60_FPS
|
|
#define HUNTING_PHOTO_FAST_AE_60_FPS DISABLE
|
|
#endif
|
|
|
|
#ifndef SF_EXIF_MN_BUF_SIZE
|
|
#define SF_EXIF_MN_BUF_SIZE 256
|
|
#endif
|
|
|
|
#ifndef HW_S530
|
|
#define HW_S530 0
|
|
#endif
|
|
|
|
|
|
#endif //_PRJCFG_DEFAULT_H_
|