JerelJr
04dafd5618
core: replace header guards with #pragma once
...
core/lib/include/ringbuffer.h: removed trailing newline
core/lib/include/irq.h: restored header guard for irq.h to resolve build errors
core/lib/include/irq.h: added trailing newline to irq.h
2025-04-15 14:55:38 -04:00
Joshua DeWeese
45c1441e4d
macros/utils: add ABS() macro
...
This patch adds the classic ABS() macro to exist along side of the
MAX/MIN macros.
2024-02-08 09:52:22 -05:00
Joshua DeWeese
78a1a18683
macros/utils: add LIMIT() macro
...
This patch adds a macro that can be used to limit a value to a given
range.
2024-02-08 09:52:22 -05:00
Marian Buschsieweke
86fdbd7054
core/lib: Add macros/utils.h header
...
The macros CONCAT(), MIN(), and MAX() are defined over and over again in
RIOT's code base. This de-duplicates the code by moving the macros to a
common place.
2023-01-07 09:47:44 +01:00