初级会员
- 积分
- 95
- 金钱
- 95
- 注册时间
- 2018-8-8
- 在线时间
- 12 小时
|
1金钱
我用1052采集MT9V032摄像头的数据#define CAMERA_WIDTH (188)
#define CAMERA_HEIGHT (120)
#define CAMERA_BPP (1) // Bytes Per Pixel
#define CAMERA_SIZE (CAMERA_WIDTH*CAMERA_HEIGHT*CAMERA_BPP)
#define CAMERA_CONTROL_FLAGS (kCAMERA_VsyncActiveHigh|kCAMERA_HrefActiveHigh|kCAMERA_DataLatchOnRisingEdge)
#define CAMERA_FRAME_BUFFER_COUNT (4)
const camera_config_t cameraConfig = {
.pixelFormat = kVIDEO_PixelFormatYUYV, //THIS PARAM HAS NO MEANNING
.bytesPerPixel = CAMERA_BPP,
.resolution = FSL_VIDEO_RESOLUTION(CAMERA_WIDTH, CAMERA_HEIGHT),
.frameBufferLinePitch_Bytes = CAMERA_WIDTH*CAMERA_BPP,
.interface = kCAMERA_InterfaceGatedClock,
.controlFlags = CAMERA_CONTROL_FLAGS,
.framePerSec = 60, //THIS PARAM HAS NO MEANNING
};
CAMERA_RECEIVER_Init(&cameraReceiver, &cameraConfig, NULL, NULL);
CAMERA_DEVICE_Init(&cameraDevice, &cameraConfig);
CAMERA_DEVICE_Start(&cameraDevice);
//LCD_P6x8Str(15,3,"Success");
for (uint32_t i = 0; i < 4; i++)
{
CAMERA_RECEIVER_SubmitEmptyBuffer(&cameraReceiver, (uint32_t)(csiFrameBuf[i]));
}
到这里都还是正常的摄像头的IIC也正常工作了可以读出摄像头ID
然后到
CAMERA_RECEIVER_Start(&cameraReceiver);
while (kStatus_Success != CAMERA_RECEIVER_GetFullBuffer(&cameraReceiver, &activeFrameAddr))
{
;
}
我打了断点在这里 那个数组里面始终没有数据空的
我不知道问题出在哪里
|
|