Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Mock Turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Mock Turtle
Commits
53d881ef
Commit
53d881ef
authored
Dec 01, 2016
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rt: application structure is useless as parameter
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
8c675f13
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
libmockturtle-rt.c
rt/libmockturtle-rt.c
+2
-2
libmockturtle-rt.h
rt/libmockturtle-rt.h
+2
-3
No files found.
rt/libmockturtle-rt.c
View file @
53d881ef
...
...
@@ -27,13 +27,13 @@ struct rt_application *_app;
/**
* The function can be used to debug the code as alternative to the pp_printf().
*/
int
rt_send_debug
(
struct
rt_application
*
app
,
int
slot
,
int
n_values
,
...)
int
rt_send_debug
(
int
slot
,
int
n_values
,
...)
{
va_list
ap
;
struct
trtl_msg
out_buf
;
uint32_t
*
buf
;
struct
trtl_proto_header
hdr
=
{
.
rt_app_id
=
app
->
version
.
rt_id
,
.
rt_app_id
=
_
app
->
version
.
rt_id
,
.
msg_id
=
RT_ACTION_SEND_DEBUG
,
.
slot_io
=
slot
&
0xF
,
.
seq
=
0
,
...
...
rt/libmockturtle-rt.h
View file @
53d881ef
...
...
@@ -188,10 +188,9 @@ static inline void rt_mq_msg_send(struct trtl_msg *msg)
* Application debug tools
*/
#ifdef LIBMOCKTURTLE_DEBUG_ENABLE
extern
int
rt_send_debug
(
struct
rt_application
*
app
,
int
slot
,
int
n_values
,
...);
extern
int
rt_send_debug
(
int
slot
,
int
n_values
,
...);
#else
static
inline
int
rt_send_debug
(
struct
rt_application
*
app
,
int
slot
,
int
n_values
,
...)
static
inline
int
rt_send_debug
(
int
slot
,
int
n_values
,
...)
{
return
0
;
}
...
...
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