Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

compilation errors #1

Closed
jacekow opened this issue Oct 28, 2017 · 9 comments
Closed

compilation errors #1

jacekow opened this issue Oct 28, 2017 · 9 comments
Assignees
Labels

Comments

@jacekow
Copy link

jacekow commented Oct 28, 2017

D:\arduino-1.6.11\libraries\IfxMotorControlShield\src\IfxMcsBiDirectionalMotor.cpp: In constructor 'IfxMcsBiDirectionalMotor::IfxMcsBiDirectionalMotor(IfxMcs::Halfbridge*, IfxMcs::Halfbridge*)':

D:\arduino-1.6.11\libraries\IfxMotorControlShield\src\IfxMcsBiDirectionalMotor.cpp:60:13: error: 'FALSE' was not declared in this scope

mEnabled = FALSE;

         ^

D:\arduino-1.6.11\libraries\IfxMotorControlShield\src\IfxMcsBiDirectionalMotor.cpp: In member function 'bool IfxMcsBiDirectionalMotor::begin()':

D:\arduino-1.6.11\libraries\IfxMotorControlShield\src\IfxMcsBiDirectionalMotor.cpp:76:22: error: 'TRUE' was not declared in this scope

if(mOut1->active == TRUE || mOut2->active)

                  ^

D:\arduino-1.6.11\libraries\IfxMotorControlShield\src\IfxMcsBiDirectionalMotor.cpp:84:18: error: 'TRUE' was not declared in this scope

mOut1->active = TRUE;

              ^

D:\arduino-1.6.11\libraries\IfxMotorControlShield\src\IfxMcsBiDirectionalMotor.cpp:96:9: error: 'FALSE' was not declared in this scope

return FALSE;

     ^

D:\arduino-1.6.11\libraries\IfxMotorControlShield\src\IfxMcsBiDirectionalMotor.cpp: In member function 'void IfxMcsBiDirectionalMotor::end()':

D:\arduino-1.6.11\libraries\IfxMotorControlShield\src\IfxMcsBiDirectionalMotor.cpp:102:17: error: 'FALSE' was not declared in this scope

if(mEnabled == FALSE)

             ^

D:\arduino-1.6.11\libraries\IfxMotorControlShield\src\IfxMcsBiDirectionalMotor.cpp:107:18: error: 'FALSE' was not declared in this scope

mOut1->active = FALSE;

              ^

D:\arduino-1.6.11\libraries\IfxMotorControlShield\src\IfxMcsBiDirectionalMotor.cpp: In member function 'void IfxMcsBiDirectionalMotor::start()':

D:\arduino-1.6.11\libraries\IfxMotorControlShield\src\IfxMcsBiDirectionalMotor.cpp:123:13: error: 'TRUE' was not declared in this scope

mRunning = TRUE;

         ^

D:\arduino-1.6.11\libraries\IfxMotorControlShield\src\IfxMcsBiDirectionalMotor.cpp: In member function 'void IfxMcsBiDirectionalMotor::stop()':

D:\arduino-1.6.11\libraries\IfxMotorControlShield\src\IfxMcsBiDirectionalMotor.cpp:130:13: error: 'FALSE' was not declared in this scope

mRunning = FALSE;

         ^

D:\arduino-1.6.11\libraries\IfxMotorControlShield\src\IfxMcsBiDirectionalMotor.cpp: In member function 'void IfxMcsBiDirectionalMotor::update()':

D:\arduino-1.6.11\libraries\IfxMotorControlShield\src\IfxMcsBiDirectionalMotor.cpp:212:17: error: 'FALSE' was not declared in this scope

if(mEnabled == FALSE)

             ^

D:\arduino-1.6.11\libraries\IfxMotorControlShield\src\IfxMcsBiDirectionalMotor.cpp:218:14: error: 'FALSE' was not declared in this scope

mRunning = FALSE;

          ^

D:\arduino-1.6.11\libraries\IfxMotorControlShield\src\IfxMcsBiDirectionalMotor.cpp:220:17: error: 'FALSE' was not declared in this scope

if(mRunning == FALSE)

             ^

exit status 1

@mhollfelder mhollfelder self-assigned this Nov 3, 2017
@mhollfelder mhollfelder added the bug label Nov 3, 2017
@mhollfelder
Copy link
Contributor

TRUE and FALSE seems to be not defined, we need to fix this.
I think that there was the assumption that these keywords are defined for every hardware platform.

For which hardware are you compiling the library?

Best regards,

Manuel

@jacekow
Copy link
Author

jacekow commented Nov 3, 2017 via email

@mhollfelder
Copy link
Contributor

It is the mentioned issue, I will prepare an update for today and release it asap.
Sorry for the troubles with the Arduino Uno and the compilation.

If you would like to use it for Infineon's Easy Kit with XE164, you would need to modify the code to substitute the Arduino hardware abstraction layer, I assume.
Should be feasible and sounds interesting :)

Best regards,

Manuel

@jacekow
Copy link
Author

jacekow commented Nov 7, 2017 via email

@mhollfelder
Copy link
Contributor

I released a new version 1.0.1 which should fix the TRUE/FALSE problem.
Please test it and if you face issues, let me know.

Best regards,

Manuel

@jacekow
Copy link
Author

jacekow commented Nov 8, 2017 via email

@mhollfelder
Copy link
Contributor

Sorry for the delayed reply. Do you still need further help here?

I am not sure about the question, but I could clarify it internally and come back to you with an answer if still needed.

Best regards,

Manuel

@jacekow
Copy link
Author

jacekow commented Dec 12, 2017 via email

@mhollfelder
Copy link
Contributor

Great to hear and thank you very much for your reply.
In case you have open questions, please do not hesitate to reopen this issue or open a new one.

Best regards,

Manuel

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants