Skip to content

Refactor fastled arm definition and add pre-assertion - #2083

Closed
zackees wants to merge 4 commits into
masterfrom
cursor/refactor-fastled-arm-definition-and-add-pre-assertion-9ec9
Closed

zackees wants to merge 4 commits into
masterfrom
cursor/refactor-fastled-arm-definition-and-add-pre-assertion-9ec9

Conversation

@zackees

@zackees zackees commented Sep 16, 2025

Copy link
Copy Markdown
Member

Unify ARM platform detection under FASTLED_ARM and enforce its definition.

This refactoring removes the redundant FASTLED_IS_ARM define, centralizing ARM detection in is_arm.h. ARM platform headers now assert FASTLED_ARM is defined, providing clearer compile-time errors and improving consistency. The existing is_arm.h architecture was preserved and enhanced.


Open in Cursor Open in Web

@cursor

cursor Bot commented Sep 16, 2025

Copy link
Copy Markdown

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@zackees
zackees marked this pull request as ready for review September 17, 2025 00:35

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

#ifndef FASTLED_ARM
#if defined(__SAM3X8E__) || defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MKL26Z64__) || defined(__IMXRT1062__) || defined(ARDUINO_ARCH_RENESAS_UNO) || defined(STM32F1) || defined(STM32F4) || defined(ARDUINO_GIGA) || defined(ARDUINO_GIGA_M7) || defined(NRF52_SERIES) || defined(ARDUINO_ARCH_NRF52) || defined(NRF52840_XXAA) || defined(ARDUINO_ARCH_APOLLO3) || defined(FASTLED_APOLLO3) || defined(ARDUINO_ARCH_RP2040) || defined(TARGET_RP2040) || defined(PICO_32BIT) || defined(ARDUINO_RASPBERRY_PI_PICO) || defined(ARDUINO_ARCH_SILABS) || defined(__SAMD21G18A__) || defined(__SAMD21J18A__) || defined(__SAMD21E17A__) || defined(__SAMD21E18A__) || defined(__SAMD51G19A__) || defined(__SAMD51J19A__) || defined(__SAME51J19A__) || defined(__SAMD51P19A__) || defined(__SAMD51P20A__)
#define FASTLED_IS_ARM
#define FASTLED_ARM

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Incomplete ARM Platform Detection Causes Compilation Failures

ARM platform detection in is_arm.h is incomplete, missing macros for Teensy K66 (__MK66FX1M0__, __MK64FX512__), nRF51 (NRF51, __RFduino__, __Simblee__), STM32F2 (STM32F2XX), and Renesas (ARDUINO_ARCH_RENESAS, ARDUINO_ARCH_RENESAS_PORTENTA). This causes compilation failures as FASTLED_ARM isn't defined, triggering assertion errors in their platform headers.

Fix in Cursor Fix in Web

@zackees zackees closed this Sep 19, 2025
@zackees
zackees deleted the cursor/refactor-fastled-arm-definition-and-add-pre-assertion-9ec9 branch October 1, 2025 21:41
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.

2 participants