mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Add default state for static var.
This commit is contained in:
parent
3c49f986e4
commit
1269aa1bbc
@ -52,6 +52,7 @@
|
|||||||
#include "servo.h"
|
#include "servo.h"
|
||||||
|
|
||||||
#include "sensor.h"
|
#include "sensor.h"
|
||||||
|
#include "mt9v034.h"
|
||||||
#include "usbdbg.h"
|
#include "usbdbg.h"
|
||||||
#include "wifidbg.h"
|
#include "wifidbg.h"
|
||||||
#include "sdram.h"
|
#include "sdram.h"
|
||||||
@ -460,6 +461,7 @@ soft_reset:
|
|||||||
dac_init();
|
dac_init();
|
||||||
pyb_usb_init0();
|
pyb_usb_init0();
|
||||||
sensor_init0();
|
sensor_init0();
|
||||||
|
mt9v034_init0();
|
||||||
fb_alloc_init0();
|
fb_alloc_init0();
|
||||||
file_buffer_init0();
|
file_buffer_init0();
|
||||||
py_lcd_init0();
|
py_lcd_init0();
|
||||||
|
|||||||
@ -406,6 +406,11 @@ int mt9v034_get_triggered_mode(sensor_t *sensor)
|
|||||||
return (ret >= 0) ? ((chip_control & MT9V034_CHIP_CONTROL_MODE_MASK) == MT9V034_CHIP_CONTROL_SNAP_MODE) : -1;
|
return (ret >= 0) ? ((chip_control & MT9V034_CHIP_CONTROL_MODE_MASK) == MT9V034_CHIP_CONTROL_SNAP_MODE) : -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void mt9v034_init0()
|
||||||
|
{
|
||||||
|
MT9V034_mode = MT9V034_NOT_SET;
|
||||||
|
}
|
||||||
|
|
||||||
int mt9v034_init(sensor_t *sensor)
|
int mt9v034_init(sensor_t *sensor)
|
||||||
{
|
{
|
||||||
sensor->gs_bpp = sizeof(uint8_t);
|
sensor->gs_bpp = sizeof(uint8_t);
|
||||||
@ -444,6 +449,10 @@ int mt9v034_init(sensor_t *sensor)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
void mt9v034_init0()
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
int mt9v034_init(sensor_t *sensor)
|
int mt9v034_init(sensor_t *sensor)
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
@ -10,5 +10,6 @@
|
|||||||
#define __MT9V034_H__
|
#define __MT9V034_H__
|
||||||
#include "sensor.h"
|
#include "sensor.h"
|
||||||
#define MT9V034_XCLK_FREQ 27000000
|
#define MT9V034_XCLK_FREQ 27000000
|
||||||
|
void mt9v034_init0();
|
||||||
int mt9v034_init(sensor_t *sensor);
|
int mt9v034_init(sensor_t *sensor);
|
||||||
#endif // __MT9V034_H__
|
#endif // __MT9V034_H__
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user