1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-28 23:49:47 +01:00
RIOT/boards/ek-lm4f120xl
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
..
dist cortex_m: Add debug symbols for OpenOCD/GDB thread support 2017-01-16 20:50:35 +01:00
include boards/ek-lm4f120x: Change internal LED macro for C2Rust compatibility 2024-08-23 13:48:44 +02:00
doc.txt doc: add wiki documentation to Doxygen files 2018-08-01 15:24:54 +02:00
Kconfig *Kconfig*: Modify Kconfig to remove dep model 2024-03-27 10:28:12 +01:00
Makefile boards: changed module name to 'board' 2015-12-07 17:53:22 +01:00
Makefile.dep boards/ek-lm4f120xl: provide SAUL configuration 2019-09-28 19:11:03 +02:00
Makefile.features boards/ek-lm4f120xl: move CPU/CPU_MODEL definition to Makefile.features 2019-09-24 17:29:37 +02:00
Makefile.include boards: set supported programmers 2021-02-24 13:30:34 +01:00