mirror of
https://github.com/sipeed/Maixduino.git
synced 2026-03-03 09:04:00 +01:00
@@ -656,7 +656,7 @@ bool Sipeed_GC0328::reset(bool binocular)
|
||||
{
|
||||
if(dvpInit() != 0) // dvp hardware init
|
||||
return false;
|
||||
if(sensro_gc_detect() != 0) // gc0328 camera detect
|
||||
if(sensor_gc_detect() != 0) // gc0328 camera detect
|
||||
return false;
|
||||
|
||||
if(binocular)
|
||||
@@ -885,7 +885,7 @@ int Sipeed_GC0328::cambus_writeb(uint8_t slv_addr, uint8_t reg_addr, uint8_t reg
|
||||
return 0;
|
||||
}
|
||||
|
||||
int Sipeed_GC0328::sensro_gc_detect()
|
||||
int Sipeed_GC0328::sensor_gc_detect()
|
||||
{
|
||||
DCMI_PWDN_HIGH();//enable gc0328 要恢复 normal 工作模式,需将 PWDN pin 接入低电平即可,同时写入初始化寄存器即可
|
||||
DCMI_RESET_LOW();//reset gc3028
|
||||
|
||||
@@ -76,7 +76,7 @@ private:
|
||||
int cambus_readb(uint8_t slv_addr, uint8_t reg_addr, uint8_t *reg_data);
|
||||
int cambus_writeb(uint8_t slv_addr, uint8_t reg_addr, uint8_t reg_data);
|
||||
|
||||
int sensro_gc_detect();
|
||||
int sensor_gc_detect();
|
||||
|
||||
int gc0328_reset();
|
||||
int gc0328_read_reg(uint8_t reg_addr);
|
||||
|
||||
@@ -778,7 +778,7 @@ int Sipeed_OV2640::dvpInit(uint32_t freq)
|
||||
if(0 == sensor_ov_detect()){//find ov sensor
|
||||
// printf("find ov sensor\n");
|
||||
}
|
||||
else if(0 == sensro_gc_detect()){//find gc0328 sensor
|
||||
else if(0 == sensor_gc_detect()){//find gc0328 sensor
|
||||
// printf("find gc3028\n");
|
||||
}
|
||||
|
||||
@@ -947,7 +947,7 @@ int Sipeed_OV2640::sensor_ov_detect()
|
||||
return 0;
|
||||
}
|
||||
|
||||
int Sipeed_OV2640::sensro_gc_detect()
|
||||
int Sipeed_OV2640::sensor_gc_detect()
|
||||
{
|
||||
DCMI_PWDN_HIGH();//enable gc0328 要恢复 normal 工作模式,需将 PWDN pin 接入低电平即可,同时写入初始化寄存器即可
|
||||
DCMI_RESET_LOW();//reset gc3028
|
||||
|
||||
@@ -80,7 +80,7 @@ private:
|
||||
int cambus_writew2(uint8_t slv_addr, uint16_t reg_addr, uint16_t reg_data);
|
||||
|
||||
int sensor_ov_detect();
|
||||
int sensro_gc_detect();
|
||||
int sensor_gc_detect();
|
||||
|
||||
int ov2640_reset();
|
||||
int ov2640_read_reg(uint8_t reg_addr);
|
||||
|
||||
Reference in New Issue
Block a user