mirror of https://github.com/ArduPilot/ardupilot
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:
parent
71efe28851
commit
b4a840a336
|
@ -285,3 +285,4 @@ FastSerial::transmit(void)
|
|||
if (_txBuffer.head == _txBuffer.tail)
|
||||
*_ucsrb &= ~_portTxBits;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue