Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncompilable code in power_output_startup() #5

Open
maxgerhardt opened this issue Sep 24, 2020 · 2 comments
Open

Uncompilable code in power_output_startup() #5

maxgerhardt opened this issue Sep 24, 2020 · 2 comments

Comments

@maxgerhardt
Copy link

maxgerhardt commented Sep 24, 2020

You write

#ifdef WIO_W600
void power_output_startup()
{
pinMode(PB_7, OUTPUT);
digitalWrite(PB_7, HIGH);
}
#endif

With the only includes being

#include <stdio.h>
#include "debug.h"

and

https://github.com/w600/arduino/blob/master/cores/w600/debug.h

Yet the function attempts to call into digitalWrite() and and pinMode() which is undeclared.

GCC throws the errors

C:\Users\Maxi\.platformio\packages\framework-arduino-w60x\cores\w600\core_w600_main.cpp: In function 'void power_output_startup()':
C:\Users\Maxi\.platformio\packages\framework-arduino-w60x\cores\w600\core_w600_main.cpp:23:13: error: 'PB_7' was not declared in this scope
     pinMode(PB_7, OUTPUT);
             ^
C:\Users\Maxi\.platformio\packages\framework-arduino-w60x\cores\w600\core_w600_main.cpp:23:19: error: 'OUTPUT' was not declared in this scope
     pinMode(PB_7, OUTPUT);
                   ^
C:\Users\Maxi\.platformio\packages\framework-arduino-w60x\cores\w600\core_w600_main.cpp:23:25: error: 'pinMode' was not declared in this scope
     pinMode(PB_7, OUTPUT);
                         ^
C:\Users\Maxi\.platformio\packages\framework-arduino-w60x\cores\w600\core_w600_main.cpp:24:24: error: 'HIGH' was not declared in this scope
     digitalWrite(PB_7, HIGH);
                        ^
C:\Users\Maxi\.platformio\packages\framework-arduino-w60x\cores\w600\core_w600_main.cpp:24:28: error: 'digitalWrite' was not declared in this scope
     digitalWrite(PB_7, HIGH);
                            ^

thus the core in its current latest-git form is uncompilable.

Adding #include <Arduino.h> also does not make the code compile because of code in WString.h

Compiling .pio\build\wio_w600\FrameworkArduino\core_w600_main.cpp.o
In file included from C:\Users\Maxi\.platformio\packages\framework-arduino-w60x\cores\w600/Print.h:18:0,
                 from C:\Users\Maxi\.platformio\packages\framework-arduino-w60x\cores\w600/Stream.h:15,
                 from C:\Users\Maxi\.platformio\packages\framework-arduino-w60x\cores\w600/HardwareSerial.h:15,
                 from C:\Users\Maxi\.platformio\packages\framework-arduino-w60x\cores\w600/wiring.h:24,
                 from C:\Users\Maxi\.platformio\packages\framework-arduino-w60x\cores\w600/Arduino.h:13,
                 from C:\Users\Maxi\.platformio\packages\framework-arduino-w60x\cores\w600\core_w600_main.cpp:21:
C:\Users\Maxi\.platformio\packages\framework-arduino-w60x\cores\w600/WString.h:137:83: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, const char*)'
  friend StringSumHelper & operator + (const StringSumHelper &lhs, const char *cstr);
                                                                                   ^
C:\Users\Maxi\.platformio\packages\framework-arduino-w60x\cores\w600/WString.h:136:27: note: previous declaration 'StringSumHelper& operator+(const StringSumHelper&, const String&)'
  friend StringSumHelper & operator + (const StringSumHelper &lhs, const String &rhs);
                           ^
[...] many more errors
@maxgerhardt
Copy link
Author

Hey people of @w600 and @wdyichen, @thingsturn. Is this repository being worked on? No commits for nearly a year but bugs are still open :(

@maxgerhardt
Copy link
Author

Seems to be dead.

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

No branches or pull requests

1 participant