Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
8efb62d5
Commit
8efb62d5
authored
Feb 05, 2021
by
Tomasz Wlostowski
Committed by
Tristan Gingold
Mar 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib/wrc-task: make WRC_MAX_TASKS overridable by BSPs
parent
6b4ef79c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
wrc-task.h
include/wrc-task.h
+5
-1
wrc-tasks.c
lib/wrc-tasks.c
+3
-2
No files found.
include/wrc-task.h
View file @
8efb62d5
...
@@ -6,7 +6,11 @@
...
@@ -6,7 +6,11 @@
#ifndef __WRC_TASK_H__
#ifndef __WRC_TASK_H__
#define __WRC_TASK_H__
#define __WRC_TASK_H__
#define WRC_MAX_TASKS 20
#include <board.h>
#ifndef WRC_MAX_TASKS
# define WRC_MAX_TASKS 20
#endif
/*
/*
* A task is a data structure, but currently suboptimal.
* A task is a data structure, but currently suboptimal.
...
...
lib/wrc-tasks.c
View file @
8efb62d5
...
@@ -92,8 +92,9 @@ struct wrc_task* wrc_task_create( const char *name, void (*init)(void), int (*jo
...
@@ -92,8 +92,9 @@ struct wrc_task* wrc_task_create( const char *name, void (*init)(void), int (*jo
t
=
&
tasks
[
i
];
t
=
&
tasks
[
i
];
break
;
break
;
}
}
if
(
!
t
)
{
if
(
!
t
)
pp_printf
(
"Task %s not created!
\n
"
,
name
);
{
main_dbg
(
"wrc_task_create() failed due to too many tasks (%d)
\n
"
,
WRC_MAX_TASKS
);
return
NULL
;
return
NULL
;
}
}
...
...
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