Loading .gitignore +5 −2 Original line number Diff line number Diff line html/* *.o attic/* /.project /.cproject Loading @@ -9,3 +9,6 @@ attic/* generated* sysroots bitbake-logs autocampars launch_php_script temp autocampars.c +2 −2 Original line number Diff line number Diff line Loading @@ -64,7 +64,7 @@ int main (int argc, char *argv[]) { char sport[10]; int port = 0; if (argc <2){ ELP_FERR(fprintf(stderr, "Sensor porft not provided (%s)\n", argv[0])); ELP_FERR(fprintf(stderr, "Sensor port not provided (%s)\n", argv[0])); exit (1); } port = strtol(argv[1], NULL,10) & 3; Loading @@ -76,7 +76,7 @@ int main (int argc, char *argv[]) { ELP_FERR(fprintf(stderr, "Open failed: (%s)\n", framepars_driver_name[port])); exit (1); } ///TODO: Use it to re-running ccamftp.php ///TODO: Use it to re-run ccamftp.php /// see if any arguments are provided. If they are - they are bit number, sleep time in seconds and command/arguments of an external program /// to be launched. Usually - a php script, so it makes sense not to keep the php instance in memory if it is not used most of the time /// (done so for ccamftp.php) Loading eclipse_project_setup/.externalToolBuilders/SCP apps-autocampars to target.launch 0 → 100644 +8 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8" standalone="no"?> <launchConfiguration type="org.eclipse.ui.externaltools.ProgramBuilderLaunchConfigurationType"> <booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/> <stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/elphel-apps-autocampars/run_bitbake.sh}"/> <stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,"/> <stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="apps-autocampars -c target_scp -f"/> <booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/> </launchConfiguration> eclipse_project_setup/.project +10 −0 Original line number Diff line number Diff line Loading @@ -11,6 +11,16 @@ <arguments> </arguments> </buildCommand> <buildCommand> <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name> <triggers>full,incremental,</triggers> <arguments> <dictionary> <key>LaunchConfigHandle</key> <value><project>/.externalToolBuilders/SCP apps-autocampars to target.launch</value> </dictionary> </arguments> </buildCommand> </buildSpec> <natures> <nature>org.eclipse.cdt.core.cnature</nature> Loading launch_php_script.c +1 −1 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ int main (int argc, char *argv[]) { "with optional parameters, blocking itself until the script terminates.\n\n" " After that it sleeps again until the bit is reenabled (normally script exits\n" "when this bit is cleared) and launches the script again. That reduces memory usage\n" "when the script is disabled - no need to keep PHP interpreter in teh memory (>2MB)\n\n" "when the script is disabled - no need to keep PHP interpreter in the memory (>2MB)\n\n" "Usage:\n" "%s <sensor_port> <bit_number> <command> [<parameter>...]\n",argv[0]); exit (1); Loading Loading
.gitignore +5 −2 Original line number Diff line number Diff line html/* *.o attic/* /.project /.cproject Loading @@ -9,3 +9,6 @@ attic/* generated* sysroots bitbake-logs autocampars launch_php_script temp
autocampars.c +2 −2 Original line number Diff line number Diff line Loading @@ -64,7 +64,7 @@ int main (int argc, char *argv[]) { char sport[10]; int port = 0; if (argc <2){ ELP_FERR(fprintf(stderr, "Sensor porft not provided (%s)\n", argv[0])); ELP_FERR(fprintf(stderr, "Sensor port not provided (%s)\n", argv[0])); exit (1); } port = strtol(argv[1], NULL,10) & 3; Loading @@ -76,7 +76,7 @@ int main (int argc, char *argv[]) { ELP_FERR(fprintf(stderr, "Open failed: (%s)\n", framepars_driver_name[port])); exit (1); } ///TODO: Use it to re-running ccamftp.php ///TODO: Use it to re-run ccamftp.php /// see if any arguments are provided. If they are - they are bit number, sleep time in seconds and command/arguments of an external program /// to be launched. Usually - a php script, so it makes sense not to keep the php instance in memory if it is not used most of the time /// (done so for ccamftp.php) Loading
eclipse_project_setup/.externalToolBuilders/SCP apps-autocampars to target.launch 0 → 100644 +8 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8" standalone="no"?> <launchConfiguration type="org.eclipse.ui.externaltools.ProgramBuilderLaunchConfigurationType"> <booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/> <stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/elphel-apps-autocampars/run_bitbake.sh}"/> <stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,"/> <stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="apps-autocampars -c target_scp -f"/> <booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/> </launchConfiguration>
eclipse_project_setup/.project +10 −0 Original line number Diff line number Diff line Loading @@ -11,6 +11,16 @@ <arguments> </arguments> </buildCommand> <buildCommand> <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name> <triggers>full,incremental,</triggers> <arguments> <dictionary> <key>LaunchConfigHandle</key> <value><project>/.externalToolBuilders/SCP apps-autocampars to target.launch</value> </dictionary> </arguments> </buildCommand> </buildSpec> <natures> <nature>org.eclipse.cdt.core.cnature</nature> Loading
launch_php_script.c +1 −1 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ int main (int argc, char *argv[]) { "with optional parameters, blocking itself until the script terminates.\n\n" " After that it sleeps again until the bit is reenabled (normally script exits\n" "when this bit is cleared) and launches the script again. That reduces memory usage\n" "when the script is disabled - no need to keep PHP interpreter in teh memory (>2MB)\n\n" "when the script is disabled - no need to keep PHP interpreter in the memory (>2MB)\n\n" "Usage:\n" "%s <sensor_port> <bit_number> <command> [<parameter>...]\n",argv[0]); exit (1); Loading