I am able to run the video_preview example, which grabs the frames from the camera. I want to use this example in another dsp/bios project. I copied the other dsp/bios code into the video_preview example. And also made some changes to the dsp/bios configuration according to the other project. One such change is addition of an Idle Funtion "IDL_OSware".
When i include this function, i am getting a grey frame, when i delete this function from the configuration, i am getting the video frames as usual. But, if i delete this function, the other dsp/bios code which i integrated, is not working. According to the documentation, this function relaxes the cpu and gives control to other process. May be this is the reason, i am getting the grey frames. Is there any way i can overcome this problem, like saving the context of video_preview task before relaxing the CPU or something like that
Thank you