Add 'extern' definitions to legitimise clients that want to assume that Serial* always exists.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@321 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
DrZiplok@gmail.com 2010-08-27 02:29:14 +00:00
parent 71efe28851
commit b4a840a336
2 changed files with 7 additions and 0 deletions

View File

@ -285,3 +285,4 @@ FastSerial::transmit(void)
if (_txBuffer.head == _txBuffer.tail)
*_ucsrb &= ~_portTxBits;
}

View File

@ -96,4 +96,10 @@ private:
TXBuffer _txBuffer;
};
// For clients that want to assume that the default Serial* objects exist.
extern class FastSerial Serial;
extern class FastSerial Serial1;
extern class FastSerial Serial2;
extern class FastSerial Serial3;
#endif // FastSerial_h