Decouple BinComm from FastSerial, now that we can use Stream instead.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@405 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
DrZiplok@gmail.com 2010-09-06 09:40:45 +00:00
parent 96a80f1c66
commit ed24b47fb3
2 changed files with 4 additions and 5 deletions

View File

@ -45,7 +45,7 @@
#define DEC_MESSAGE_TIMEOUT 100
BinComm::BinComm(const BinComm::MessageHandler *handlerTable,
FastSerial *interface) :
Stream *interface) :
_handlerTable(handlerTable),
_interface(interface)
{

View File

@ -30,7 +30,6 @@
#ifndef APM_BinComm_h
#define APM_BinComm_h
#include <FastSerial.h>
#include "WProgram.h"
#include <string.h>
#include <inttypes.h>
@ -184,11 +183,11 @@ public:
/// registered; handlers are called in the order
/// they appear in the table.
///
/// @param interface The FastSerial interface that will be used
/// @param interface The stream that will be used
/// for telemetry communications.
///
BinComm(const MessageHandler *handlerTable,
FastSerial *interface);
Stream *interface);
//////////////////////////////////////////////////////////////////////
/// @name Decoder interface
@ -227,7 +226,7 @@ public:
private:
const MessageHandler *_handlerTable; ///< callout table
FastSerial *_interface; ///< Serial port we send/receive using.
Stream *_interface; ///< Serial port we send/receive using.
/// Various magic numbers
enum MagicNumbers {