mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Add a guard ifdef to catch folks trying to build APM with the wrong board selected.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@517 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
b0d81d3b68
commit
0f53cc4c8e
@ -23,6 +23,10 @@
|
|||||||
#include <avr/interrupt.h>
|
#include <avr/interrupt.h>
|
||||||
#include "WProgram.h"
|
#include "WProgram.h"
|
||||||
|
|
||||||
|
#if !defined(__AVR_ATmega1280__)
|
||||||
|
# error Please check the Tools/Board menu to ensure you have selected Arduino Mega as your target.
|
||||||
|
#else
|
||||||
|
|
||||||
// Variable definition for Input Capture interrupt
|
// Variable definition for Input Capture interrupt
|
||||||
volatile unsigned int ICR4_old;
|
volatile unsigned int ICR4_old;
|
||||||
volatile unsigned char PPM_Counter=0;
|
volatile unsigned char PPM_Counter=0;
|
||||||
@ -185,3 +189,5 @@ void APM_RC_Class::Force_Out6_Out7(void)
|
|||||||
|
|
||||||
// make one instance for the user to use
|
// make one instance for the user to use
|
||||||
APM_RC_Class APM_RC;
|
APM_RC_Class APM_RC;
|
||||||
|
|
||||||
|
#endif // defined(ATMega1280)
|
||||||
|
Loading…
Reference in New Issue
Block a user