MAVLink: enable separate MAVLink helpers

this makes the core MAVLink functions into library calls, instead of
being inlined. The resulting code size doesn't change, but it means we
can safely call MAVLink functions from multiple places without causing
undue code bloat
This commit is contained in:
Andrew Tridgell 2011-09-18 11:03:27 +10:00
parent e433f727d8
commit e40fe2293b
2 changed files with 4 additions and 0 deletions

View File

@ -10,3 +10,5 @@ BetterStream *mavlink_comm_1_port;
// this might need to move to the flight software // this might need to move to the flight software
mavlink_system_t mavlink_system = {7,1,0,0}; mavlink_system_t mavlink_system = {7,1,0,0};
#include "include/mavlink_helpers.h"

View File

@ -8,6 +8,8 @@
#include <BetterStream.h> #include <BetterStream.h>
#define MAVLINK_SEPARATE_HELPERS
#include "include/ardupilotmega/version.h" #include "include/ardupilotmega/version.h"
// this allows us to make mavlink_message_t much smaller // this allows us to make mavlink_message_t much smaller