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
ARDUINO_ARCH_STM32 should not be defined #684
Conversation
The ARDUINO_ARCH_{build.arch} is used to differentiate core. See: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#working-with-multiple-architectures Defining ARDUINO_ARCH_STM32 will raised several issues on library supporting both cores: * ARDUINO_ARCH_STM32 * ARDUINO_ARCH_STM32F1 Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
The architecture is not identical with core. |
@stevstrong
The Arduino_Core_STM32 support all STM32 arch.
The Arduino_STM32/STM32F1/platform.txt Line 80 in 0651dd7
The main concerns is to not add extra define to other ARDUINO_ARCH_{build.arch}. |
I see that my link to original commit was not good. I've updated it: |
As both cores support same architectures, I wold suggest following defines to differentiate between cores: ARDUINO_CORE_STM - for your (STM official) core ARDUINO_CORE_LIBMAPLE - for this (or other) Libmaple based core. |
@stevstrong , |
So you are saying that
in contrast to
In this case I think one should replace the actual form with one of these specific ones, not completely remove. |
No... That's all. It seems you don't know how Arduino proceed to handle cores with architecture. |
You are most probably right. The Arduino library specification seems to make equivalent of a "core" with the
Anyway, the define you try to remove with this PR should be rather replaced with [EDIT] |
OK, seems to make sense. |
Ah ;)
Maybe but in that case the proper way to handle this is to update library with the proper definition ;) |
FYI, I will do soon a PR to MySensors and as |
This is something that has bugged for some time, but I didn't put the effort into assessing what's wrong exactly. I was also initially confused with |
The
ARDUINO_ARCH_{build.arch}
is used to differentiate core.See: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#working-with-multiple-architectures
Defining
ARDUINO_ARCH_STM32
will raised several issues on library supporting both cores:ARDUINO_ARCH_STM32
ARDUINO_ARCH_STM32F1
This was introduced here:
2208bcb