RIOT-OS / rust-riot-wrappers

The `riot-wrappers` crate, which enables high-level access to RIOT from the Rust programming language
13 stars 11 forks source link

ws281x: Use static inline function through inline namespace #88

Closed chrysn closed 5 months ago

chrysn commented 5 months ago

Unblocks: https://github.com/RIOT-OS/RIOT/pull/20562

The module probably got broken when the inline functions were not automatically exported to the main namespace any more. Now that 20562 enables it on default boards, it is built the first time since 2021, and can now be built again.

There is no standalone test for this yet; it can be tested from RIOT by bending .cargo/config.toml to this branch, and running USEMODULE+=ws281x make -C examples/rust-gcoap BOARD=microbit-v2 (which failed to build before, and now builds).