Skip to content

stm32duino (Maple, Blue Pill, etc): compile fix - #742

Merged
focalintent merged 1 commit into
FastLED:masterfrom
kolyshkin:stm32-fix
Feb 21, 2019
Merged

focalintent merged 1 commit into
FastLED:masterfrom
kolyshkin:stm32-fix

Conversation

@kolyshkin

Copy link
Copy Markdown
Contributor

This fixes the infamous

(...)/FastLED/platforms/arm/stm32/led_sysdefs_arm_stm32.h:4:25:
fatal error: application.h: No such file or directory

issue when compiling code for Blue Pill (STM32F1xx).

The above #include <application.h> was initially added by
commit f149084 as part of the port for the particle photon
boards. While it's not entirely clear where this header
is coming from, it is clear that it's not there for the
usual Arduino + stm32duino.

So, to fix compilation for Blue Pill, while not breaking
it for particle photon, let's move the include to under
#ifdef STM32F10X_MD, the define which the original code
used.

Fixes: #741

This fixes the infamous

> (...)/FastLED/platforms/arm/stm32/led_sysdefs_arm_stm32.h:4:25:
>  fatal error: application.h: No such file or directory

issue when compiling code for Blue Pill (STM32F1xx).

The above `#include <application.h>` was initially added by
commit f149084 as part of the port for the particle photon
boards. While it's not entirely clear where this header
is coming from, it is clear that it's not there for the
usual Arduino + stm32duino.

So, to fix compilation for Blue Pill, while not breaking
it for particle photon, let's move the include to under
`#ifdef STM32F10X_MD`, the define which the original code
used.

Fixes: FastLED#741
Signed-off-by: Kir Kolyshkin <[email protected]>
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

Successfully merging this pull request may close these issues.

compilation fail for STM32F103C (Blue Pill)

2 participants