1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/ek-lm4f120xl/include
chrysn ffcd646217 boards/ek-lm4f120x: Change internal LED macro for C2Rust compatibility
C preprocessor defines in non-function form are assumed by C2Rust to be
constant if they are an expression and not a statement; the LED_PORT was
the only place in the code where that was wrong, and led to compiler
errors due to the value not being constant.

Altering the internal macro to use function form sidesteps that issue.
The generally preferred alternative of using a `const` is unavailable in
this case because the dereferencing operator is already part of the
vendor header file cpu/stellaris_common/include/vendor/cortex-m4-def.h.

The changed macro is documented as required by doccheck. The doccheck
rule that grandfathered in the LED_PORT macro as allowed undocumented is
not removed because it is also used in other board.h files.
2024-08-23 13:48:44 +02:00
..
board.h boards/ek-lm4f120x: Change internal LED macro for C2Rust compatibility 2024-08-23 13:48:44 +02:00
gpio_params.h boards/ek-lm4f120xl: provide SAUL configuration 2019-09-28 19:11:03 +02:00
periph_conf.h doc: fix unbalaced grouping 2022-09-14 15:05:25 +02:00