Skip to content

Commit

Permalink
build system: deprecate RIOT_MCU predefined macro
Browse files Browse the repository at this point in the history
This re-adds `RIOT_MCU` as alias for `RIOT_CPU` and marks it as
deprecated. That should make life easier for downstream apps that may
still use `RIOT_CPU`.
  • Loading branch information
maribu committed Sep 28, 2024
1 parent cadbbb6 commit 29e963b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dist/tools/genconfigheader/riotbuild-prefix.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,16 @@
# define MACRO_DEPRECATED
#endif

/**
* @brief Name of the MCU the app is compiled for as string literal
*
* @deprecated Use @ref RIOT_CPU instead. This will be removed soonest in
* release 2025.04
*
* This has been renamed to `RIOT_CPU` for consistency. Even though MCU would
* technically be the better name, CPU is used every else in the source code
* and folder structure.
*/
#define RIOT_MCU MACRO_DEPRECATED RIOT_CPU

/** @} */

0 comments on commit 29e963b

Please sign in to comment.