Grab pictures from camera

I wrote a source able to grab a picture from a MIPI/CSI2 Camera based on the usage of v4l2 driver (cross compiled for Linux for Tegra). I would like to know if I there is a way I can port this software on FreeRTOS.
Many thanks

I am not familiar with this camera but it should be possible. Do you know what all primitives the driver needs from OS? I’d also recommend checking with the vendor of the camera.