OV5645 Driver

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

OV5645 Driver

OV5645 Driver

This is ov5645 driver and tested with i.MX6 L3.0.35 BSP .  It is modified based on ov5640.c.

P.S.

The power down function for OV5645 is different from the OV5640. So modify the function in your_board.c like this:

static void mx6q_mipi_powerdown(int powerdown)

{

    if (!powerdown)

        gpio_set_value(MIPI_PWDN, 1);

    else

        gpio_set_value(MIPI_PWDN, 0);

    msleep(5);

}

Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1124319%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EOV5645%20Driver%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1124319%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThis%20is%20ov5645%20driver%20and%20tested%20with%20i.MX6%20L3.0.35%20BSP%20.%26nbsp%3B%20It%20is%20modified%20based%20on%20ov5640.c.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EP.S.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EThe%20power%20down%20function%20for%20OV5645%20is%20different%20from%20the%20OV5640.%20So%20modify%20the%20function%20in%20your_board.c%20like%20this%3A%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3Estatic%20void%20mx6q_mipi_powerdown(int%20powerdown)%3C%2FP%3E%3CP%3E%7B%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20if%20(!powerdown)%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20gpio_set_value(MIPI_PWDN%2C%201)%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20else%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20gpio_set_value(MIPI_PWDN%2C%200)%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20msleep(5)%3B%3C%2FP%3E%3CP%3E%7D%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎07-22-2015 03:38 AM
Updated by: