Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
4a4fcb5d
Commit
4a4fcb5d
authored
10 years ago
by
Mark Charlebois
Browse files
Options
Downloads
Patches
Plain Diff
Linux: fixes for gcc
Fixes to compile with gcc Signed-off-by:
Mark Charlebois
<
charlebm@gmail.com
>
parent
566c3ed3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/platforms/linux/px4_layer/px4_linux_impl.cpp
+1
-0
1 addition, 0 deletions
src/platforms/linux/px4_layer/px4_linux_impl.cpp
src/platforms/linux/px4_layer/px4_linux_tasks.c
+6
-1
6 additions, 1 deletion
src/platforms/linux/px4_layer/px4_linux_tasks.c
with
7 additions
and
1 deletion
src/platforms/linux/px4_layer/px4_linux_impl.cpp
+
1
−
0
View file @
4a4fcb5d
...
...
@@ -37,6 +37,7 @@
* PX4 Middleware Wrapper Linux Implementation
*/
#include
<px4_middleware.h>
#include
<stdint.h>
#include
<stdio.h>
...
...
This diff is collapsed.
Click to expand it.
src/platforms/linux/px4_layer/px4_linux_tasks.c
+
6
−
1
View file @
4a4fcb5d
...
...
@@ -88,7 +88,7 @@ px4_systemreset(bool to_bootloader)
px4_task_t
px4_task_spawn_cmd
(
const
char
*
name
,
int
scheduler
,
int
priority
,
int
stack_size
,
px4_main_t
entry
,
char
*
const
argv
[])
{
int
rv
=
0
;
int
rv
;
int
argc
=
0
;
int
i
;
unsigned
int
len
=
0
;
...
...
@@ -128,6 +128,11 @@ px4_task_t px4_task_spawn_cmd(const char *name, int scheduler, int priority, int
//printf("Called px4_task_spawn_cmd\n");
// FIXME - add handling for scheduler and priority
rv
=
pthread_create
(
&
task
,
NULL
,
(
void
*
)
&
entry_adapter
,
(
void
*
)
taskdata
);
if
(
rv
!=
0
)
{
return
(
rv
<
0
)
?
rv
:
-
rv
;
}
//printf("pthread_create task=%d rv=%d\n",(int)task, rv);
for
(
i
=
0
;
i
<
PX4_MAX_TASKS
;
++
i
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment