Skip to content
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

ws2812: support high-MHz ARMv6M chips like the RP2040 #391

Merged
merged 1 commit into from
Mar 10, 2022

Commits on Mar 1, 2022

  1. ws2812: support high-MHz ARMv6M chips like the RP2040

    The possible branch distance is a lot shorter on ARMv6M (Cortex-M and
    Cortex-M0+) for conditional branches. Therefore, convert this long
    conditional branch into an unconditional branch.
    
    This probably makes the code a little bit slower but because it is in
    the low period of the WS2812 signal it shouldn't matter for the
    protocol. And it avoids difficult workarounds specifically for the
    RP2040.
    aykevl committed Mar 1, 2022
    Configuration menu
    Copy the full SHA
    74471a5 View commit details
    Browse the repository at this point in the history