Commit 53d881ef authored by Federico Vaga's avatar Federico Vaga

rt: application structure is useless as parameter

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 8c675f13
...@@ -27,13 +27,13 @@ struct rt_application *_app; ...@@ -27,13 +27,13 @@ struct rt_application *_app;
/** /**
* The function can be used to debug the code as alternative to the pp_printf(). * 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; va_list ap;
struct trtl_msg out_buf; struct trtl_msg out_buf;
uint32_t *buf; uint32_t *buf;
struct trtl_proto_header hdr = { 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, .msg_id = RT_ACTION_SEND_DEBUG,
.slot_io = slot & 0xF, .slot_io = slot & 0xF,
.seq = 0, .seq = 0,
......
...@@ -188,10 +188,9 @@ static inline void rt_mq_msg_send(struct trtl_msg *msg) ...@@ -188,10 +188,9 @@ static inline void rt_mq_msg_send(struct trtl_msg *msg)
* Application debug tools * Application debug tools
*/ */
#ifdef LIBMOCKTURTLE_DEBUG_ENABLE #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 #else
static inline int rt_send_debug(struct rt_application *app, static inline int rt_send_debug(int slot, int n_values, ...)
int slot, int n_values, ...)
{ {
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment