Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixup ov5642 example to build on Raspberry Pi #553

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ArduCAM/examples/RaspberryPi/arducam_arch_raspberrypi.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
#include <time.h>
#include "arducam_arch_raspberrypi.h"

extern "C" {
#include <i2c/smbus.h>
}

#define SPI_ARDUCAM_SPEED 1000000
#define SPI_ARDUCAM 0
Expand Down
2 changes: 1 addition & 1 deletion ArduCAM/examples/RaspberryPi/arducam_ov5642_capture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#define OV5642_CHIPID_LOW 0x300b
#define OV5642_MAX_FIFO_SIZE 0x7FFFFF //8MByte
#define BUF_SIZE 4096
#define CAM1_CS 5
#define CAM1_CS 5 // Currently this is ignored and SPI_CE0_N (GPIO 08) must be used.

#define VSYNC_LEVEL_MASK 0x02 //0 = High active , 1 = Low active
uint8_t buf[BUF_SIZE];
Expand Down
12 changes: 6 additions & 6 deletions ArduCAM/examples/RaspberryPi/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ objects = ArduCAM.o arducam_arch_raspberrypi.o


ov2640_capture : $(objects) arducam_ov2640_capture.o
g++ $(CCFLAGS) -o ov2640_capture $(objects) arducam_ov2640_capture.o -lwiringPi -Wall
g++ $(CCFLAGS) -o ov2640_capture $(objects) arducam_ov2640_capture.o -lwiringPi -li2c -Wall
ov5640_capture : $(objects) arducam_ov5640_capture.o
g++ $(CCFLAGS) -o ov5640_capture $(objects) arducam_ov5640_capture.o -lwiringPi -Wall
g++ $(CCFLAGS) -o ov5640_capture $(objects) arducam_ov5640_capture.o -lwiringPi -li2c -Wall
ov5642_capture : $(objects) arducam_ov5642_capture.o
g++ $(CCFLAGS) -o ov5642_capture $(objects) arducam_ov5642_capture.o -lwiringPi -Wall
g++ $(CCFLAGS) -o ov5642_capture $(objects) arducam_ov5642_capture.o -lwiringPi -li2c -Wall

ov2640_4cams_capture : $(objects) arducam_ov2640_4cams_capture.o
g++ $(CCFLAGS) -o ov2640_4cams_capture $(objects) arducam_ov2640_4cams_capture.o -lwiringPi -Wall
g++ $(CCFLAGS) -o ov2640_4cams_capture $(objects) arducam_ov2640_4cams_capture.o -lwiringPi -li2c -Wall
ov5640_4cams_capture : $(objects) arducam_ov5640_4cams_capture.o
g++ $(CCFLAGS) -o ov5640_4cams_capture $(objects) arducam_ov5640_4cams_capture.o -lwiringPi -Wall
g++ $(CCFLAGS) -o ov5640_4cams_capture $(objects) arducam_ov5640_4cams_capture.o -lwiringPi -li2c -Wall
ov5642_4cams_capture : $(objects) arducam_ov5642_4cams_capture.o
g++ $(CCFLAGS) -o ov5642_4cams_capture $(objects) arducam_ov5642_4cams_capture.o -lwiringPi -Wall
g++ $(CCFLAGS) -o ov5642_4cams_capture $(objects) arducam_ov5642_4cams_capture.o -lwiringPi -li2c -Wall


ArduCAM.o : ArduCAM.cpp
Expand Down