mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
Use the presence of UDRx as an indication that the serial port x might need to be supported.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1200 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
95d683d043
commit
47bb4d22c6
@ -33,8 +33,12 @@
|
|||||||
#include "FastSerial.h"
|
#include "FastSerial.h"
|
||||||
#include "WProgram.h"
|
#include "WProgram.h"
|
||||||
|
|
||||||
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
|
#if defined(UDR3)
|
||||||
# define FS_MAX_PORTS 4
|
# define FS_MAX_PORTS 4
|
||||||
|
#elif defined(UDR2)
|
||||||
|
# define FS_MAX_PORTS 3
|
||||||
|
#elif defined(UDR1)
|
||||||
|
# define FS_MAX_PORTS 2
|
||||||
#else
|
#else
|
||||||
# define FS_MAX_PORTS 1
|
# define FS_MAX_PORTS 1
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user