Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-autocampars
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-apps-autocampars
Commits
6b3717de
Commit
6b3717de
authored
Sep 11, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated project setup
parent
23533d6e
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
5 deletions
+26
-5
.gitignore
.gitignore
+5
-2
autocampars.c
autocampars.c
+2
-2
SCP apps-autocampars to target.launch
...xternalToolBuilders/SCP apps-autocampars to target.launch
+8
-0
.project
eclipse_project_setup/.project
+10
-0
launch_php_script.c
launch_php_script.c
+1
-1
No files found.
.gitignore
View file @
6b3717de
html/*
*.o
attic/*
/.project
/.cproject
...
...
@@ -9,3 +9,6 @@ attic/*
generated*
sysroots
bitbake-logs
autocampars
launch_php_script
temp
autocampars.c
View file @
6b3717de
...
...
@@ -64,7 +64,7 @@ int main (int argc, char *argv[]) {
char
sport
[
10
];
int
port
=
0
;
if
(
argc
<
2
){
ELP_FERR
(
fprintf
(
stderr
,
"Sensor por
f
t 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
;
...
...
@@ -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-run
ning
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)
...
...
eclipse_project_setup/.externalToolBuilders/SCP apps-autocampars to target.launch
0 → 100644
View file @
6b3717de
<?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
View file @
6b3717de
...
...
@@ -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>
...
...
launch_php_script.c
View file @
6b3717de
...
...
@@ -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 t
eh
memory (>2MB)
\n\n
"
"when the script is disabled - no need to keep PHP interpreter in t
he
memory (>2MB)
\n\n
"
"Usage:
\n
"
"%s <sensor_port> <bit_number> <command> [<parameter>...]
\n
"
,
argv
[
0
]);
exit
(
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment