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
5d2948c5fe
core: move macros/math.h to core/lib/include/macros
2023-05-02 14:02:15 +02: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
Benjamin Valentin
7abaae7bbd
treewide: fix typos
2022-09-15 12:12:23 +02:00
d248b2d785
core/lib: hide _XTSTR()
from doxygen
2022-03-10 15:35:02 +01:00
3db7c1150a
core: split out library code
...
This commit splits core into it's scheduler/IPC part and into other code
that is either used or uses the scheduler, through defined APIs.
2022-03-09 21:43:05 +01:00