Commit 8d2a6316 authored by Mikhail Karpenko's avatar Mikhail Karpenko

Move command structure declaration to uapi directory

parent d336db3a
......@@ -5,7 +5,7 @@ CONFIGS = qt_source
SRCS = camogm.c camogm_ogm.c camogm_jpeg.c camogm_mov.c camogm_kml.c camogm_read.c index_list.c
OBJS = camogm.o camogm_ogm.o camogm_jpeg.o camogm_mov.o camogm_kml.o camogm_read.o index_list.o
CFLAGS += -Wall -I$(STAGING_KERNEL_DIR)/include/elphel
CFLAGS += -Wall -I$(STAGING_KERNEL_DIR)/include/elphel -I$(STAGING_DIR_HOST)/usr/include-uapi
LDLIBS += -logg -pthread -lm
SYSCONFDIR = /etc/
......
......@@ -28,25 +28,10 @@
#include <sys/types.h>
#include <string.h>
#include <c313a.h>
#include <elphel/ahci_cmd.h>
#include "camogm_jpeg.h"
/* this should be in system includes */
#define DRV_CMD_WRITE (1 << 0)
#define DRV_CMD_FINISH (1 << 1)
#define DRV_CMD_EXIF (1 << 2)
struct frame_data {
unsigned int sensor_port;
int cirbuf_ptr;
int jpeg_len;
int meta_index;
int cmd;
};
const char sysfs_fname[] = "/sys/devices/soc0/amba@0/80000000.elphel-ahci/write";
/* end of system includes */
int camogm_init_jpeg(camogm_state *state)
{
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment