From efd0f2dc57c6c1300f34270fc249695d45cceb0c Mon Sep 17 00:00:00 2001 From: DrZiplok Date: Tue, 28 Dec 2010 23:26:10 +0000 Subject: [PATCH] Improve documentation re: macros used to define serial ports. git-svn-id: https://arducopter.googlecode.com/svn/trunk@1335 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- libraries/FastSerial/FastSerial.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/libraries/FastSerial/FastSerial.h b/libraries/FastSerial/FastSerial.h index 70e09944e6..a964803241 100644 --- a/libraries/FastSerial/FastSerial.h +++ b/libraries/FastSerial/FastSerial.h @@ -60,17 +60,22 @@ // only define interrupt handlers for serial ports that are actually // used, we have to force our users to define them using a macro. // -// Due to the way interrupt vectors are specified, we have to have -// a separate macro for every port. Ugh. +// FastSerialPort(, ) // -// The macros are: +// is the name of the object that will be created by the +// macro. is the 0-based number of the port that will +// be managed by the object. +// +// Previously ports were defined with a different macro for each port, +// and these macros are retained for compatibility: // // FastSerialPort0() creates referencing serial port 0 // FastSerialPort1() creates referencing serial port 1 // FastSerialPort2() creates referencing serial port 2 // FastSerialPort3() creates referencing serial port 3 // -// Note that macros are only defined for ports that exist on the target device. +// Note that compatibility macros are only defined for ports that +// exist on the target device. // //