Compiling Errors

This forum is dedicated to all issues and questions related to your individual setups and configurations
Post Reply
wastevenson
Posts: 33
Joined: Thu Jan 07, 2016 5:33 am

Compiling Errors

Post by wastevenson »

Hey everyone. I'm having errors compiling Multiwii. Works great compiling for a 2560, and 328p. So I know the issue is with the micro-controller I am trying to use now, which is a 20mhz Atmega1284p . The compiling errors seems to be related with pin configuration I am guessing as that should be the main difference between this and the other Atmegas when compiling?

I started a thread in another area of the forums seeing if anyone had written a tutorial on what needs to be done when switching over to different MCUs, but that thread yielded no responses so I thought I would ask more specific questions.

Can someone please tell me why these errors are coming up and how I can make them go away / change which pins these go to?

\sketch\Alarms.cpp: In function 'void turnOff(uint8_t)':
Alarms.cpp:213: error: 'BUZZERPIN_OFF' was not declared in this scope
BUZZERPIN_OFF;
^
Alarms.cpp:219: error: 'LEDPIN_OFF' was not declared in this scope
LEDPIN_OFF;
^
\sketch\Alarms.cpp: In function 'void blinkLED(uint8_t, uint8_t, uint8_t)':
Alarms.cpp:337: error: 'LEDPIN_TOGGLE' was not declared in this scope
LEDPIN_TOGGLE; // switch LEDPIN state
^
\sketch\Alarms.cpp: In function 'void toggleResource(uint8_t, uint8_t)':
Alarms.cpp:391: error: 'LEDPIN_ON' was not declared in this scope
if (activate == 1) {LEDPIN_ON;}
^
Alarms.cpp:392: error: 'LEDPIN_OFF' was not declared in this scope
else LEDPIN_OFF;
^
exit status 1
'BUZZERPIN_OFF' was not declared in this scope


Thank-you in advance.

Post Reply