-
-
Notifications
You must be signed in to change notification settings - Fork 86
Define digital pins via static const
instead of #define
#54
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
Conversation
static const
instead of #define
C++17, see here. Consequently Mind updating the PR accordingly?, i.e. |
@aentinger - done. Faster turn time than yesterday. But if I try to compile this example on the minima:
I will get this error using constexpr:
|
Well, I get a lot of errors, but none like you ... 🤔 /home/alex/Arduino/hardware/arduino-git/renesas/variants/UNOWIFIR4/pins_arduino.h:54:31: error: 'PIN_D0' was not declared in this scope
static constexpr uint8_t D0 = PIN_D0;
^~~~~~
/home/alex/Arduino/hardware/arduino-git/renesas/variants/UNOWIFIR4/pins_arduino.h:54:31: note: suggested alternative: 'PIN_A0'
static constexpr uint8_t D0 = PIN_D0;
^~~~~~
PIN_A0
/home/alex/Arduino/hardware/arduino-git/renesas/variants/UNOWIFIR4/pins_arduino.h:55:31: error: 'PIN_D1' was not declared in this scope
static constexpr uint8_t D1 = PIN_D1;
^~~~~~ |
oops - darn copy and paste error. Just pushed the fix to clear up the errors you are seeing. |
I suppose you'll also need to extend support for Portenta C33? |
Not home right now but will do later today. Still saw the error in build
fails?
…On Tue, Jul 18, 2023 at 10:18 AM Alexander Entinger < ***@***.***> wrote:
I suppose you'll also need to extend support for Portenta C33?
—
Reply to this email directly, view it on GitHub
<#54 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABI6DROS6NOCT6JPBCG5723XQ2LMZANCNFSM6AAAAAA2OGBNBQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Ok - updated. |
It seems the problem is that Try renaming -void Stacktrace_Handler(void) {
+extern "C" void Stacktrace_Handler(void) { |
I've reconsidered, drop |
@aentinger |
Merged, thank you! |
Muxto i2c support and gpio bug fix
Muxto i2c support and gpio bug fix Former-commit-id: 1873eaa
@aentinger
Sorry for the delay in getting this to you. Got side tracked with a weird issue as I was trying to get the Encoder library updated so people can use with the R4 boards. But in accordance with your request for me to submit a PR for [ArduinoEigen] Pin Definitions Conflict with Sketch/Library Variables when used with ArduinoCore-renesas Issue #50 this is the update. As I mentioned "constexpr" throws a error so I left it as const like the analog pins. Out of curiosity what version of c++ are the R4 using?
regards
Mike