Skip to content

Commit

Permalink
fix telemetry_intermcu
Browse files Browse the repository at this point in the history
after #1873
  • Loading branch information
flixr committed Oct 30, 2016
1 parent bf06b11 commit ef8c85a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
7 changes: 4 additions & 3 deletions sw/airborne/modules/telemetry/telemetry_intermcu.h
Expand Up @@ -30,8 +30,9 @@
#include "std.h"

/* External functions */
void telemetry_intermcu_init(void);
void telemetry_intermcu_periodic(void);
void telemetry_intermcu_on_msg(uint8_t msg_id, uint8_t* msg, uint8_t size);
extern void telemetry_intermcu_init(void);
extern void telemetry_intermcu_periodic(void);
extern void telemetry_intermcu_event(void);
extern void telemetry_intermcu_on_msg(uint8_t msg_id, uint8_t* msg, uint8_t size);

#endif /* TELEMETRY_INTERMCU_H */
15 changes: 1 addition & 14 deletions sw/airborne/modules/telemetry/telemetry_intermcu_ap.c
Expand Up @@ -34,21 +34,8 @@
#include "subsystems/datalink/telemetry.h"
#include "subsystems/datalink/datalink.h"

/* Default maximum telemetry message size */
#ifndef TELEMERTY_INTERMCU_MSG_SIZE
#define TELEMERTY_INTERMCU_MSG_SIZE 128
#endif

/* Structure for handling telemetry over InterMCU */
struct telemetry_intermcu_t {
struct link_device dev; ///< Device structure for communication
struct short_transport trans; ///< Transport without any extra encoding
uint8_t buf[TELEMERTY_INTERMCU_MSG_SIZE]; ///< Buffer for the messages
uint8_t buf_idx; ///< Index of the buffer
};

/* Telemetry InterMCU throughput */
static struct telemetry_intermcu_t telemetry_intermcu;
struct telemetry_intermcu_t telemetry_intermcu;

/* Static functions */
static bool telemetry_intermcu_check_free_space(struct telemetry_intermcu_t *p, long *fd __attribute__((unused)), uint16_t len);
Expand Down

0 comments on commit ef8c85a

Please sign in to comment.