error with compilin…
 
Share:
Notifications
Clear all

error with compiling code in arduino ide


dea8e3a72c176e2de274b3346729af04?s=80&d=mm&r=g
(@synapticsbs)
Member
Joined: 4 months ago
Posts: 2
Topic starter  

 

arduino

Hello. 

I recently purchased the air hockey robot evo with the devia control board 1.1

I downloaded the code for the air hockey robot evo from   https://github.com/jjrobots/Air_Hockey_Robot_EVO .

Could you please help me with some problems i encounter. Thank you in advance.

When i try to compile and upload the code i get the following:

 

Steppers error: variable or field 'ISR' declared void
void ISR(TIMER1_COMPA_vect)
^
Steppers error: 'TIMER1_COMPA_vect' was not declared in this scope
void ISR(TIMER1_COMPA_vect)
^
Steppers error: variable or field 'ISR' declared void
void ISR(TIMER3_COMPA_vect)
^
Steppers error: 'TIMER3_COMPA_vect' was not declared in this scope
void ISR(TIMER3_COMPA_vect)
^
Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\AHRobot_EVO.ino: In function 'void setup()':
AHRobot_EVO error: 'TCCR1B' was not declared in this scope
TCCR1B &= ~(1 << WGM13);
^
AHRobot_EVO error: 'WGM13' was not declared in this scope
TCCR1B &= ~(1 << WGM13);
^
AHRobot_EVO error: 'WGM12' was not declared in this scope
TCCR1B |= (1 << WGM12);
^
AHRobot_EVO error: 'TCCR1A' was not declared in this scope
TCCR1A &= ~(1 << WGM11);
^
AHRobot_EVO error: 'WGM11' was not declared in this scope
TCCR1A &= ~(1 << WGM11);
^
AHRobot_EVO error: 'WGM10' was not declared in this scope
TCCR1A &= ~(1 << WGM10);
^
AHRobot_EVO error: 'COM1A0' was not declared in this scope
TCCR1A &= ~(3 << COM1A0);
^
AHRobot_EVO error: 'COM1B0' was not declared in this scope
TCCR1A &= ~(3 << COM1B0);
^
AHRobot_EVO error: 'CS10' was not declared in this scope
TCCR1B = (TCCR1B & ~(0x07 << CS10)) | (2 << CS10);
^
AHRobot_EVO error: 'OCR1A' was not declared in this scope
OCR1A = ZERO_SPEED; // Motor stopped
^
AHRobot_EVO error: 'TCNT1' was not declared in this scope
TCNT1 = 0;
^
AHRobot_EVO error: 'TCCR3B' was not declared in this scope
TCCR3B &= ~(1 << WGM13);
^
AHRobot_EVO error: 'TCCR3A' was not declared in this scope
TCCR3A &= ~(1 << WGM11);
^
AHRobot_EVO error: 'OCR3A' was not declared in this scope
OCR3A = ZERO_SPEED; // Motor stopped
^
AHRobot_EVO error: 'TCNT3' was not declared in this scope
TCNT3 = 0;
^
AHRobot_EVO error: 'TIMSK1' was not declared in this scope
TIMSK1 |= (1 << OCIE1A); // Enable Timer1 interrupt
^
AHRobot_EVO error: 'OCIE1A' was not declared in this scope
TIMSK1 |= (1 << OCIE1A); // Enable Timer1 interrupt
^
AHRobot_EVO error: 'TIMSK3' was not declared in this scope
TIMSK3 |= (1 << OCIE1A); // Enable Timer1 interrupt
^
\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Network.ino: In function 'void ESPInit()':
\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Network.ino warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ESPsendCommand("AT", "OK", 1);
^
Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Network.ino warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ESPsendCommand("AT+RST", "OK", 2); // ESP Wifi module RESET
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Network.ino warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ESPsendCommand("AT+GMR", "OK", 5);
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Network.ino warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ESPsendCommand("AT+CWQAP", "OK", 3);
^
\anae\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Network.ino warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ESPsendCommand("AT+CWMODE=2", "OK", 3); // Soft AP mode
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Network.ino warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
char *cmd = "AT+CWSAP=\"JJROBOTS_XX\",\"87654321\",5,3";
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Network.ino warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ESPsendCommand("AT+CIPMUX=0", "OK", 3); // Single connection mode
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Network.ino warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ESPsendCommand("AT+CIPMODE=1", "OK", 3); // Transparent mode
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Network.ino warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ESPsendCommand("AT+CIPSTART=\"UDP\",\"192.168.4.2\",2223,2222,0", "OK", 3);
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Network.ino warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ESPsendCommand("AT+CIPSEND", ">", 2); // Start transmission (transparent mode)
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino: At global scope:
Steppers error: variable or field 'ISR' declared void
void ISR(TIMER1_COMPA_vect)
^
Steppers error: 'TIMER1_COMPA_vect' was not declared in this scope
void ISR(TIMER1_COMPA_vect)
^
Steppers error: variable or field 'ISR' declared void
void ISR(TIMER3_COMPA_vect)
^
Steppers error: 'TIMER3_COMPA_vect' was not declared in this scope
void ISR(TIMER3_COMPA_vect)
^
In file included from C:\Users\anae\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\AHRobot_EVO.ino
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino: In function 'void setMotorSpeed(int16_t, int16_t, int16_t)':
Configuration.h error: no match for 'operator&=' (operand types are '_EPortType' and 'int')
#define CLR(x,y) (x&=(~(1<<y)))
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'CLR'
CLR(PORTB, 4);
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Configuration.h note: candidate is:
#define CLR(x,y) (x&=(~(1<<y)))
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'CLR'
CLR(PORTB, 4);
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Configuration.h note: operator&=(_EPortType&, int) <built-in>
#define CLR(x,y) (x&=(~(1<<y)))
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'CLR'
CLR(PORTB, 4);
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Configuration.h note: no known conversion for argument 1 from '_EPortType' to '_EPortType&'
#define CLR(x,y) (x&=(~(1<<y)))
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'CLR'
CLR(PORTB, 4);
^
Configuration.h error: no match for 'operator|=' (operand types are '_EPortType' and 'int')
#define SET(x,y) (x|=(1<<y))
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'SET'
SET(PORTB, 4);
^
Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Configuration.h note: candidate is:
#define SET(x,y) (x|=(1<<y))
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'SET'
SET(PORTB, 4);
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Configuration.h note: operator|=(_EPortType&, int) <built-in>
#define SET(x,y) (x|=(1<<y))
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'SET'
SET(PORTB, 4);
^
Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Configuration.h note: no known conversion for argument 1 from '_EPortType' to '_EPortType&'
#define SET(x,y) (x|=(1<<y))
^
Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'SET'
SET(PORTB, 4);
^
Steppers error: 'OCR1A' was not declared in this scope
OCR1A = timer_period;
^
Steppers error: 'TCNT1' was not declared in this scope
if (TCNT1 > OCR1A)
^
In file included from C:\Users\anae\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\AHRobot_EVO.ino
Configuration.h error: no match for 'operator&=' (operand types are '_EPortType' and 'int')
#define CLR(x,y) (x&=(~(1<<y)))
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'CLR'
CLR(PORTC, 6);
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Configuration.h note: candidate is:
#define CLR(x,y) (x&=(~(1<<y)))
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'CLR'
CLR(PORTC, 6);


\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Configuration.h note: operator&=(_EPortType&, int) <built-in>
#define CLR(x,y) (x&=(~(1<<y)))
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'CLR'
CLR(PORTC, 6);
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Configuration.h note: no known conversion for argument 1 from '_EPortType' to '_EPortType&'
#define CLR(x,y) (x&=(~(1<<y)))
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'CLR'
CLR(PORTC, 6);
^
Configuration.h error: no match for 'operator|=' (operand types are '_EPortType' and 'int')
#define SET(x,y) (x|=(1<<y))
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'SET'
SET(PORTC, 6);
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Configuration.h note: candidate is:
#define SET(x,y) (x|=(1<<y))
^
Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'SET'
SET(PORTC, 6);
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Configuration.h note: operator|=(_EPortType&, int) <built-in>
#define SET(x,y) (x|=(1<<y))
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'SET'
SET(PORTC, 6);
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Configuration.h note: no known conversion for argument 1 from '_EPortType' to '_EPortType&'
#define SET(x,y) (x|=(1<<y))
^
\Desktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'SET'
SET(PORTC, 6);
^
Steppers error: 'OCR3A' was not declared in this scope
OCR3A = timer_period;
^
Steppers error: 'TCNT3' was not declared in this scope
if (TCNT3 > OCR3A)
^
exit status 1
variable or field 'ISR' declared void

 

 


Quote
dea8e3a72c176e2de274b3346729af04?s=80&d=mm&r=g
(@synapticsbs)
Member
Joined: 4 months ago
Posts: 2
Topic starter  

update on errors:

Arduino: 1.8.15 (Windows 10), Board: "Arduino/Genuino Zero (Native USB Port)"




Steppers error: expected constructor, destructor, or type conversion before '(' token

 ISR(TIMER1_COMPA_vect)

     ^

Steppers error: expected constructor, destructor, or type conversion before '(' token

 ISR(TIMER3_COMPA_vect)

     ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\AHRobot_EVO.ino: In function 'void setup()':

AHRobot_EVO error: 'TCCR1B' was not declared in this scope

   TCCR1B &= ~(1 << WGM13);

   ^

AHRobot_EVO error: 'WGM13' was not declared in this scope

   TCCR1B &= ~(1 << WGM13);

                    ^

AHRobot_EVO error: 'WGM12' was not declared in this scope

   TCCR1B |=  (1 << WGM12);

                    ^

AHRobot_EVO error: 'TCCR1A' was not declared in this scope

   TCCR1A &= ~(1 << WGM11);

   ^

AHRobot_EVO error: 'WGM11' was not declared in this scope

   TCCR1A &= ~(1 << WGM11);

                    ^

AHRobot_EVO error: 'WGM10' was not declared in this scope

   TCCR1A &= ~(1 << WGM10);

                    ^

AHRobot_EVO error: 'COM1A0' was not declared in this scope

   TCCR1A &= ~(3 << COM1A0);

                    ^

AHRobot_EVO error: 'COM1B0' was not declared in this scope

   TCCR1A &= ~(3 << COM1B0);

                    ^

AHRobot_EVO error: 'CS10' was not declared in this scope

   TCCR1B = (TCCR1B & ~(0x07 << CS10)) | (2 << CS10);

                                ^

AHRobot_EVO error: 'OCR1A' was not declared in this scope

   OCR1A = ZERO_SPEED;   // Motor stopped

   ^

AHRobot_EVO error: 'TCNT1' was not declared in this scope

   TCNT1 = 0;

   ^

AHRobot_EVO error: 'TCCR3B' was not declared in this scope

   TCCR3B &= ~(1 << WGM13);

   ^

AHRobot_EVO error: 'TCCR3A' was not declared in this scope

   TCCR3A &= ~(1 << WGM11);

   ^

AHRobot_EVO error: 'OCR3A' was not declared in this scope

   OCR3A = ZERO_SPEED;   // Motor stopped

   ^

AHRobot_EVO error: 'TCNT3' was not declared in this scope

   TCNT3 = 0;

   ^

AHRobot_EVO error: 'TIMSK1' was not declared in this scope

   TIMSK1 |= (1 << OCIE1A); // Enable Timer1 interrupt

   ^

AHRobot_EVO error: 'OCIE1A' was not declared in this scope

   TIMSK1 |= (1 << OCIE1A); // Enable Timer1 interrupt

                   ^

AHRobot_EVO error: 'TIMSK3' was not declared in this scope

   TIMSK3 |= (1 << OCIE1A); // Enable Timer1 interrupt

   ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino: At global scope:

Steppers error: expected constructor, destructor, or type conversion before '(' token

 ISR(TIMER1_COMPA_vect)

    ^

Steppers error: expected constructor, destructor, or type conversion before '(' token

 ISR(TIMER3_COMPA_vect)

    ^

In file included from C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\AHRobot_EVO.ino

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino: In function 'void setMotorSpeed(int16_t, int16_t, int16_t)':

Configuration.h error: no match for 'operator&=' (operand types are '_EPortType' and 'int')

 #define CLR(x,y) (x&=(~(1<<y)))

                    ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'CLR'

     CLR(PORTB, 4);

     ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Configuration.h note: candidate is:

 #define CLR(x,y) (x&=(~(1<<y)))

                    ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'CLR'

     CLR(PORTB, 4);

     ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Configuration.h note: operator&=(_EPortType&, int) <built-in>

 #define CLR(x,y) (x&=(~(1<<y)))

                    ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'CLR'

     CLR(PORTB, 4);

     ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Configuration.h note:   no known conversion for argument 1 from '_EPortType' to '_EPortType&'

 #define CLR(x,y) (x&=(~(1<<y)))

                    ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'CLR'

     CLR(PORTB, 4);

     ^

Configuration.h error: no match for 'operator|=' (operand types are '_EPortType' and 'int')

 #define SET(x,y) (x|=(1<<y))

                    ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'SET'

     SET(PORTB, 4);

     ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Configuration.h note: candidate is:

 #define SET(x,y) (x|=(1<<y))

                    ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'SET'

     SET(PORTB, 4);

     ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Configuration.h note: operator|=(_EPortType&, int) <built-in>

 #define SET(x,y) (x|=(1<<y))

                    ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'SET'

     SET(PORTB, 4);

     ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Configuration.h note:   no known conversion for argument 1 from '_EPortType' to '_EPortType&'

 #define SET(x,y) (x|=(1<<y))

                    ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'SET'

     SET(PORTB, 4);

     ^

Steppers error: 'OCR1A' was not declared in this scope

   OCR1A = timer_period;

   ^

Steppers error: 'TCNT1' was not declared in this scope

   if (TCNT1 > OCR1A)

       ^

In file included from C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\AHRobot_EVO.ino

Configuration.h error: no match for 'operator&=' (operand types are '_EPortType' and 'int')

 #define CLR(x,y) (x&=(~(1<<y)))

                    ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'CLR'

     CLR(PORTC, 6);

     ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Configuration.h note: candidate is:

 #define CLR(x,y) (x&=(~(1<<y)))

                    ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'CLR'

     CLR(PORTC, 6);

     ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Configuration.h note: operator&=(_EPortType&, int) <built-in>

 #define CLR(x,y) (x&=(~(1<<y)))

                    ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'CLR'

     CLR(PORTC, 6);

     ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Configuration.h note:   no known conversion for argument 1 from '_EPortType' to '_EPortType&'

 #define CLR(x,y) (x&=(~(1<<y)))

                    ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'CLR'

     CLR(PORTC, 6);

     ^

Configuration.h error: no match for 'operator|=' (operand types are '_EPortType' and 'int')

 #define SET(x,y) (x|=(1<<y))

                    ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'SET'

     SET(PORTC, 6);

     ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Configuration.h note: candidate is:

 #define SET(x,y) (x|=(1<<y))

                    ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'SET'

     SET(PORTC, 6);

     ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Configuration.h note: operator|=(_EPortType&, int) <built-in>

 #define SET(x,y) (x|=(1<<y))

                    ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'SET'

     SET(PORTC, 6);

     ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Configuration.h note:   no known conversion for argument 1 from '_EPortType' to '_EPortType&'

 #define SET(x,y) (x|=(1<<y))

                    ^

C:xxxxxDesktop\air hockey 28.06.2021\Air_Hockey_Robot_EVO-master\Arduino\AHRobot_EVO\Steppers.ino note: in expansion of macro 'SET'

     SET(PORTC, 6);

     ^

Steppers error: 'OCR3A' was not declared in this scope

   OCR3A = timer_period;

   ^

Steppers error: 'TCNT3' was not declared in this scope

   if (TCNT3 > OCR3A)

       ^

exit status 1

expected constructor, destructor, or type conversion before '(' token



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

ReplyQuote
350a26dd49eb55d3494500240423a207?s=80&d=mm&r=g
(@robotn1)
Member Admin
Joined: 6 years ago
Posts: 771

ReplyQuote
Share: