Simple neopixel (WS2812) library, tuned for stm32 (L432) at 80 MHz Should be compatible with any stm32, different clock speed may require timing adjustments in neopixel.c

Dependents:   test_led_rgb

Fix for __nop() not available

`nop()` is used as a compiler specific wrapper around the assembly intrinics of a "no operation" OP code for timing adjustments. This, however, depents on support of the compiler for the specific command/macro. Mbed has worked around this by providing the general macro `NOP()`, which maps to the compiler specific function. This pull request intends to lift the compiler restriction by replacing `nop()` with `NOP()`.

Fork of the original NeoPixel repository.

1 comment:

18 Apr 2020

It seems that I took the wrong text format syntax. Here again:

__nop() is used as a compiler specific wrapper around the assembly intrinics of a "no operation" OP code for timing adjustments. This, however, depents on support of the compiler for the specific command/macro. Mbed has worked around this by providing the general macro __NOP(), which maps to the compiler specific function. This pull request intends to lift the compiler restriction by replacing __nop() with __NOP().