Other Parts Discussed in Thread: SYSBIOS
Hello,
I want to capture frames on VIN1 and VIN2 but I don't know how to program VIP to accomplish that. I'm using starterware_01_03_00_09 and have based my current project off the examples videoLoopback and ov10630_sensor.
To configure the VIP for VIN1 or VIN2 I first run App_FrameBufInit(), then App_coreOpen(), followed by App_configureVIP(). For each of the three functions I have created unique variables for the various handles, including VpsDrv_CaptInstObj and App_FrameBufObj, as well as unique callback functions. I can capture images from VIN1 or VIN2 if I run the 3 configuration functions for that VIN number right before calling the App_coreStart() function. However when I run those 3 configuration functions for both VIN1 and VIN2 and then call the App_coreStart() for either one of those VINs, images will only be captured if the last VIP configuration functions I ran matches the VIN number I'm trying to capture. So there seems to be something in VIP that's getting overwritten when I call those same 3 functions again? I'm not really sure why else I would be able to capture from each VIN when I program VIP right before a capture.
I was also wondering how the IRQs should work when capturing both cameras at the same time. I'm currently using VIP1_IRQ1 mapped to IPU1_27 because that's how the examples were configured. I'm used to mapping the core interrupt to an ISR but I don't see how the VIP configuration functions do this. Do I need to add VIP1_IRQ2 so that I have one IRQ per VIN?
Thanks,
Juan