Commit 13512700 authored by Andrey Filippov's avatar Andrey Filippov

temporary autocampars.xml

parent e4569ef9
DOCUMENTROOT=$(DESTDIR)/www/pages DOCUMENTROOT=www/pages
OWN = -o root -g root OWN = -o root -g root
INSTDOCS = 0644 INSTDOCS = 0644
INSTALL = install INSTALL = install
DOCS= favicon.ico \ DOCS= favicon.ico \
robots.txt robots.txt
CONFS= autocampars.xml
SYSCONFDIR = etc
CONFDIR = $(SYSCONFDIR)/elphel393
PHP_SCRIPTS=camvars.php \ PHP_SCRIPTS=camvars.php \
ccam.php \ ccam.php \
...@@ -19,10 +22,11 @@ all: ...@@ -19,10 +22,11 @@ all:
install: install:
@echo "make install in src" @echo "make install in src"
$(INSTALL) $(OWN) -d $(DOCUMENTROOT) $(INSTALL) $(OWN) -d $(DESTDIR)/$(DOCUMENTROOT)
$(INSTALL) $(OWN) -m $(INSTDOCS) $(DOCS) $(DOCUMENTROOT) $(INSTALL) $(OWN) -m $(INSTDOCS) $(DOCS) $(DESTDIR)/$(DOCUMENTROOT)
$(INSTALL) $(OWN) -m $(INSTDOCS) $(PHP_SCRIPTS) $(DOCUMENTROOT) $(INSTALL) $(OWN) -m $(INSTDOCS) $(PHP_SCRIPTS) $(DESTDIR)/$(DOCUMENTROOT)
@echo "REMOTE_IP =$(REMOTE_IP)" $(INSTALL) $(OWN) -d $(DESTDIR)/$(SYSCONFDIR)
@echo "REMOTE_USER =$(REMOTE_USER)" $(INSTALL) $(OWN) -d $(DESTDIR)/$(CONFDIR)
$(INSTALL) $(OWN) -m $(INSTDOCS) $(CONFS) $(DESTDIR)/$(CONFDIR)
clean: clean:
@echo "make clean in src" @echo "make clean in src"
This diff is collapsed.
...@@ -412,6 +412,10 @@ CAPTION; ...@@ -412,6 +412,10 @@ CAPTION;
fclose ( $framepars_file ); fclose ( $framepars_file );
} else if ($value == "init") { } else if ($value == "init") {
$framepars_file = fopen ( $GLOBALS ['framepars_paths'] [$sensor_port], "w+"); //r" ); $framepars_file = fopen ( $GLOBALS ['framepars_paths'] [$sensor_port], "w+"); //r" );
// NC393 - added IRQs ON
// $xml->addChild ( 'irqon_result' . strval ( $sensor_port ), fseek ( $framepars_file, ELPHEL_LSEEK_INTERRUPT_ON, SEEK_END ) ); // #define LSEEK_INTERRUPT_ON 0x24 /// enable camera interrupts
// $xml->addChild ( 'compressor_irqon_result', fseek ( $framepars_file, ELPHEL_LSEEK_INTERRUPT_ON, SEEK_END ) ); // #define LSEEK_INTERRUPT_ON 0x24 /// enable camera interrupts
$xml->addChild ('DEBUG_01_'. strval ( $sensor_port ), $GLOBALS ['framepars_paths'] [$sensor_port]); $xml->addChild ('DEBUG_01_'. strval ( $sensor_port ), $GLOBALS ['framepars_paths'] [$sensor_port]);
$xml->addChild ( 'LSEEK_FRAMEPARS_INIT' . strval ( $sensor_port ), fseek ( $framepars_file, ELPHEL_LSEEK_FRAMEPARS_INIT, SEEK_END ) ); $xml->addChild ( 'LSEEK_FRAMEPARS_INIT' . strval ( $sensor_port ), fseek ( $framepars_file, ELPHEL_LSEEK_FRAMEPARS_INIT, SEEK_END ) );
$xml->addChild ( 'elphel_set_P_value' . strval ( $sensor_port ), elphel_set_P_value ( $sensor_port, ELPHEL_SENSOR, 0x00, 0, ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC ) ); // / will start detection $xml->addChild ( 'elphel_set_P_value' . strval ( $sensor_port ), elphel_set_P_value ( $sensor_port, ELPHEL_SENSOR, 0x00, 0, ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC ) ); // / will start detection
......
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