For the STM32 core no customization needed as it follows Arduino API.
When BluePill support have been introduced, it was not enough generic
https://github.com/thomasfredericks/Bounce2/pull/35
Board specific definition have been used instead of the generic core one:
`ARDUINO_ARCH_STM32F1`
See https://www.stm32duino.com/viewtopic.php?f=7&p=1203#p1203
Note:
* https://github.com/rogerclarkmelbourne/Arduino_STM32 also support STM32F4, so it could be fine to add also:
`ARDUINO_ARCH_STM32F4`
* For the [STM32 core](https://github.com/stm32duino/Arduino_Core_STM32) no customization needed as it follows Arduino API.
Hi @thomasfredericks
as it is an enum, I don't think:
https://github.com/rogerclarkmelbourne/Arduino_STM32/blob/9d46a1c27d4dc9dd4df06b76a1d81684519d8acc/STM32F1/cores/maple/io.h#L42
Well this is only the header protection of the file, this is not linked from my point of view.
The patch proposed here use the Arduino core definition linked to that core which is the "official" to identify a core.
The main issue is Roger's core do not follow the standard Arduino API for pinMode anyway it can be easily fixed.
Well this is only the header protection of the file, this is not linked from my point of view.
The patch proposed here use the Arduino core definition linked to that core which is the "official" to identify a core.
The main issue is Roger's core do not follow the standard Arduino API for pinMode anyway it can be easily fixed.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
When BluePill support have been introduced, it was not enough generic
https://github.com/thomasfredericks/Bounce2/pull/35
Board specific definition have been used instead of the generic core one:
ARDUINO_ARCH_STM32F1See https://www.stm32duino.com/viewtopic.php?f=7&p=1203#p1203
Note:
ARDUINO_ARCH_STM32F4Would it be possible to just know if WiringPinMode is defined?
Hi @thomasfredericks
as it is an enum, I don't think:
https://github.com/rogerclarkmelbourne/Arduino_STM32/blob/9d46a1c27d4dc9dd4df06b76a1d81684519d8acc/STM32F1/cores/maple/io.h#L42
But there is
#define _WIRISH_IO_H_and that should be more universal.Well this is only the header protection of the file, this is not linked from my point of view.
The patch proposed here use the Arduino core definition linked to that core which is the "official" to identify a core.
The main issue is Roger's core do not follow the standard Arduino API for pinMode anyway it can be easily fixed.