diff --git a/miosix/config/arch/arm7_lpc2000/lpc2138_miosix_board/board_settings.h b/miosix/config/arch/arm7_lpc2000/lpc2138_miosix_board/board_settings.h index b870be9d7ce712484c82d1f17f1942aa20322f2d..76ed0a17c4034c14c6a357e2e857f43510006618 100644 --- a/miosix/config/arch/arm7_lpc2000/lpc2138_miosix_board/board_settings.h +++ b/miosix/config/arch/arm7_lpc2000/lpc2138_miosix_board/board_settings.h @@ -30,9 +30,11 @@ #include "util/version.h" -#if BOARD_SETTINGS_VERSION != 100 -#error You need to update board_settings.h to match the version in the kernel. -#endif +/** + * \internal + * Versioning for board_settings.h for out of git tree projects + */ +#define BOARD_SETTINGS_VERSION 100 namespace miosix { diff --git a/miosix/config/arch/cortexM3_stm32/stm32f100rb_stm32vldiscovery/board_settings.h b/miosix/config/arch/cortexM3_stm32/stm32f100rb_stm32vldiscovery/board_settings.h index 24e451e34d6120a997775004091cbd68ef171899..d2842d6ae308a22d1200534915edff1931895143 100644 --- a/miosix/config/arch/cortexM3_stm32/stm32f100rb_stm32vldiscovery/board_settings.h +++ b/miosix/config/arch/cortexM3_stm32/stm32f100rb_stm32vldiscovery/board_settings.h @@ -30,9 +30,11 @@ #include "util/version.h" -#if BOARD_SETTINGS_VERSION != 100 -#error You need to update board_settings.h to match the version in the kernel. -#endif +/** + * \internal + * Versioning for board_settings.h for out of git tree projects + */ +#define BOARD_SETTINGS_VERSION 100 namespace miosix { diff --git a/miosix/config/arch/cortexM3_stm32/stm32f103ve_mp3v2/board_settings.h b/miosix/config/arch/cortexM3_stm32/stm32f103ve_mp3v2/board_settings.h index 0281e7220d73a487c77b24c7b675c0917d6f0ef7..d779c6419cdb6100b29806aaac74ac4c19667f68 100644 --- a/miosix/config/arch/cortexM3_stm32/stm32f103ve_mp3v2/board_settings.h +++ b/miosix/config/arch/cortexM3_stm32/stm32f103ve_mp3v2/board_settings.h @@ -30,9 +30,11 @@ #include "util/version.h" -#if BOARD_SETTINGS_VERSION != 100 -#error You need to update board_settings.h to match the version in the kernel. -#endif +/** + * \internal + * Versioning for board_settings.h for out of git tree projects + */ +#define BOARD_SETTINGS_VERSION 100 namespace miosix { diff --git a/miosix/config/arch/cortexM3_stm32/stm32f103ve_strive_mini/board_settings.h b/miosix/config/arch/cortexM3_stm32/stm32f103ve_strive_mini/board_settings.h index 0281e7220d73a487c77b24c7b675c0917d6f0ef7..d779c6419cdb6100b29806aaac74ac4c19667f68 100644 --- a/miosix/config/arch/cortexM3_stm32/stm32f103ve_strive_mini/board_settings.h +++ b/miosix/config/arch/cortexM3_stm32/stm32f103ve_strive_mini/board_settings.h @@ -30,9 +30,11 @@ #include "util/version.h" -#if BOARD_SETTINGS_VERSION != 100 -#error You need to update board_settings.h to match the version in the kernel. -#endif +/** + * \internal + * Versioning for board_settings.h for out of git tree projects + */ +#define BOARD_SETTINGS_VERSION 100 namespace miosix { diff --git a/miosix/config/arch/cortexM3_stm32/stm32f103ze_redbull_v2/board_settings.h b/miosix/config/arch/cortexM3_stm32/stm32f103ze_redbull_v2/board_settings.h index 766ee972a63eaf976d1b28f9c6445c77e02b2c5f..15f007411454645890badcf17d1e319797ac16a4 100644 --- a/miosix/config/arch/cortexM3_stm32/stm32f103ze_redbull_v2/board_settings.h +++ b/miosix/config/arch/cortexM3_stm32/stm32f103ze_redbull_v2/board_settings.h @@ -30,9 +30,11 @@ #include "util/version.h" -#if BOARD_SETTINGS_VERSION != 100 -#error You need to update board_settings.h to match the version in the kernel. -#endif +/** + * \internal + * Versioning for board_settings.h for out of git tree projects + */ +#define BOARD_SETTINGS_VERSION 100 namespace miosix { diff --git a/miosix/config/arch/cortexM3_stm32/stm32f103ze_stm3210e-eval/board_settings.h b/miosix/config/arch/cortexM3_stm32/stm32f103ze_stm3210e-eval/board_settings.h index b90c72a246f2c460737a67ce1acf0afabb6042d2..325df63a5e22b805dc4c7e49abb2e97511e9c6e4 100644 --- a/miosix/config/arch/cortexM3_stm32/stm32f103ze_stm3210e-eval/board_settings.h +++ b/miosix/config/arch/cortexM3_stm32/stm32f103ze_stm3210e-eval/board_settings.h @@ -30,9 +30,11 @@ #include "util/version.h" -#if BOARD_SETTINGS_VERSION != 100 -#error You need to update board_settings.h to match the version in the kernel. -#endif +/** + * \internal + * Versioning for board_settings.h for out of git tree projects + */ +#define BOARD_SETTINGS_VERSION 100 namespace miosix { diff --git a/miosix/config/arch/cortexM3_stm32f2/stm32f205rg_sony-newman/board_settings.h b/miosix/config/arch/cortexM3_stm32f2/stm32f205rg_sony-newman/board_settings.h index 84d3a9c9d577b7eccc2a40aac2933b8a22615e24..1890a944801bc02bc2ee7b3a93146e68309a05c5 100644 --- a/miosix/config/arch/cortexM3_stm32f2/stm32f205rg_sony-newman/board_settings.h +++ b/miosix/config/arch/cortexM3_stm32f2/stm32f205rg_sony-newman/board_settings.h @@ -30,9 +30,11 @@ #include "util/version.h" -#if BOARD_SETTINGS_VERSION != 100 -#error You need to update board_settings.h to match the version in the kernel. -#endif +/** + * \internal + * Versioning for board_settings.h for out of git tree projects + */ +#define BOARD_SETTINGS_VERSION 100 namespace miosix { diff --git a/miosix/config/arch/cortexM3_stm32f2/stm32f207ig_stm3220g-eval/board_settings.h b/miosix/config/arch/cortexM3_stm32f2/stm32f207ig_stm3220g-eval/board_settings.h index 287a512ef473505c1f12f86a34128b0240530a38..820ddea65eacf8e2f4165b3777efb0278169776a 100644 --- a/miosix/config/arch/cortexM3_stm32f2/stm32f207ig_stm3220g-eval/board_settings.h +++ b/miosix/config/arch/cortexM3_stm32f2/stm32f207ig_stm3220g-eval/board_settings.h @@ -30,9 +30,11 @@ #include "util/version.h" -#if BOARD_SETTINGS_VERSION != 100 -#error You need to update board_settings.h to match the version in the kernel. -#endif +/** + * \internal + * Versioning for board_settings.h for out of git tree projects + */ +#define BOARD_SETTINGS_VERSION 100 namespace miosix { diff --git a/miosix/config/arch/cortexM3_stm32f2/stm32f207ze_als_camboard/board_settings.h b/miosix/config/arch/cortexM3_stm32f2/stm32f207ze_als_camboard/board_settings.h index 67e9767618ef4296a8c880837bf587d2a801189e..60b4e72df6606b95094c49bf4b83eedd6611aa53 100644 --- a/miosix/config/arch/cortexM3_stm32f2/stm32f207ze_als_camboard/board_settings.h +++ b/miosix/config/arch/cortexM3_stm32f2/stm32f207ze_als_camboard/board_settings.h @@ -30,9 +30,11 @@ #include "util/version.h" -#if BOARD_SETTINGS_VERSION != 100 -#error You need to update board_settings.h to match the version in the kernel. -#endif +/** + * \internal + * Versioning for board_settings.h for out of git tree projects + */ +#define BOARD_SETTINGS_VERSION 100 namespace miosix { diff --git a/miosix/config/arch/cortexM3_stm32f2/stm32f207zg_EthBoardV2/board_settings.h b/miosix/config/arch/cortexM3_stm32f2/stm32f207zg_EthBoardV2/board_settings.h index d40698f833c2117096cbc39b563938199d88ce7c..06ba71d4752ff31b3332f1833165ee479601c74a 100644 --- a/miosix/config/arch/cortexM3_stm32f2/stm32f207zg_EthBoardV2/board_settings.h +++ b/miosix/config/arch/cortexM3_stm32f2/stm32f207zg_EthBoardV2/board_settings.h @@ -30,9 +30,11 @@ #include "util/version.h" -#if BOARD_SETTINGS_VERSION != 100 -#error You need to update board_settings.h to match the version in the kernel. -#endif +/** + * \internal + * Versioning for board_settings.h for out of git tree projects + */ +#define BOARD_SETTINGS_VERSION 100 namespace miosix { diff --git a/miosix/config/arch/cortexM3_stm32l1/stm32l151c8_als_mainboard/board_settings.h b/miosix/config/arch/cortexM3_stm32l1/stm32l151c8_als_mainboard/board_settings.h index 0af59606705ce0de50ce8d8b739428281728d536..b25dbef66d84aa855230f4e6799f622fe3f0c44a 100644 --- a/miosix/config/arch/cortexM3_stm32l1/stm32l151c8_als_mainboard/board_settings.h +++ b/miosix/config/arch/cortexM3_stm32l1/stm32l151c8_als_mainboard/board_settings.h @@ -30,9 +30,11 @@ #include "util/version.h" -#if BOARD_SETTINGS_VERSION != 100 -#error You need to update board_settings.h to match the version in the kernel. -#endif +/** + * \internal + * Versioning for board_settings.h for out of git tree projects + */ +#define BOARD_SETTINGS_VERSION 100 namespace miosix { diff --git a/miosix/config/arch/cortexM4_stm32f4/stm32f407vg_bitsboard/board_settings.h b/miosix/config/arch/cortexM4_stm32f4/stm32f407vg_bitsboard/board_settings.h index a74f82dd368c0c752d8b19468a95911db17837f4..1867dfb3bcd213e77254da3f9a710dfd75262659 100644 --- a/miosix/config/arch/cortexM4_stm32f4/stm32f407vg_bitsboard/board_settings.h +++ b/miosix/config/arch/cortexM4_stm32f4/stm32f407vg_bitsboard/board_settings.h @@ -30,9 +30,11 @@ #include "util/version.h" -#if BOARD_SETTINGS_VERSION != 100 -#error You need to update board_settings.h to match the version in the kernel. -#endif +/** + * \internal + * Versioning for board_settings.h for out of git tree projects + */ +#define BOARD_SETTINGS_VERSION 100 namespace miosix { diff --git a/miosix/config/arch/cortexM4_stm32f4/stm32f407vg_stm32f4discovery/board_settings.h b/miosix/config/arch/cortexM4_stm32f4/stm32f407vg_stm32f4discovery/board_settings.h index a74f82dd368c0c752d8b19468a95911db17837f4..1867dfb3bcd213e77254da3f9a710dfd75262659 100644 --- a/miosix/config/arch/cortexM4_stm32f4/stm32f407vg_stm32f4discovery/board_settings.h +++ b/miosix/config/arch/cortexM4_stm32f4/stm32f407vg_stm32f4discovery/board_settings.h @@ -30,9 +30,11 @@ #include "util/version.h" -#if BOARD_SETTINGS_VERSION != 100 -#error You need to update board_settings.h to match the version in the kernel. -#endif +/** + * \internal + * Versioning for board_settings.h for out of git tree projects + */ +#define BOARD_SETTINGS_VERSION 100 namespace miosix { diff --git a/miosix/config/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery/board_settings.h b/miosix/config/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery/board_settings.h index 8295e783f8a6d3376e4ec87919d4ec52e14faeb8..ce56c3df55b64ab7e708e8723fa38273473fc7fd 100644 --- a/miosix/config/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery/board_settings.h +++ b/miosix/config/arch/cortexM4_stm32f4/stm32f429zi_stm32f4discovery/board_settings.h @@ -30,9 +30,11 @@ #include "util/version.h" -#if BOARD_SETTINGS_VERSION != 100 -#error You need to update board_settings.h to match the version in the kernel. -#endif +/** + * \internal + * Versioning for board_settings.h for out of git tree projects + */ +#define BOARD_SETTINGS_VERSION 100 namespace miosix { diff --git a/miosix/config/miosix_settings.h b/miosix/config/miosix_settings.h index a73f5c00a6a8b2225ccf39765962760e1dbe1e05..705897beaa22495e8394061b281f1d22017494f7 100644 --- a/miosix/config/miosix_settings.h +++ b/miosix/config/miosix_settings.h @@ -45,9 +45,11 @@ #include "board_settings.h" #include "util/version.h" -#if SETTINGS_VERSION != 100 -#error You need to update miosix_settings.h to match the version in the kernel. -#endif +/** + * \internal + * Versioning for miosix_settings.h for out of git tree projects + */ +#define MIOSIX_SETTINGS_VERSION 100 namespace miosix { diff --git a/miosix/util/version.cpp b/miosix/util/version.cpp index 2c00860743a1ef59fb919b02d61fa3405a396606..873d1e784ce484fecb0cca48e9e90469eae5fe28 100644 --- a/miosix/util/version.cpp +++ b/miosix/util/version.cpp @@ -25,6 +25,17 @@ * along with this program; if not, see <http://www.gnu.org/licenses/> * ***************************************************************************/ +#include "config/miosix_settings.h" +#include "board_settings.h" + +#if MIOSIX_SETTINGS_VERSION != 100 +#error You need to update miosix_settings.h to match the version in the kernel. +#endif + +#if BOARD_SETTINGS_VERSION != 100 +#error You need to update board_settings.h to match the version in the kernel. +#endif + namespace miosix { #ifdef __GNUC__ diff --git a/miosix/util/version.h b/miosix/util/version.h index c05ae6463a68ae336c28c450492bf389d20c3672..f161654355e4f34967b09fee66f5cc39cd63ad21 100644 --- a/miosix/util/version.h +++ b/miosix/util/version.h @@ -52,16 +52,4 @@ const char *getMiosixVersion(); } //namespace miosix -/** - * \internal - * Versioning for miosix_settings.h for out of git tree projects - */ -#define SETTINGS_VERSION 100 - -/** - * \internal - * Versioning for board_settings.h for out of git tree projects - */ -#define BOARD_SETTINGS_VERSION 100 - #endif /* VERSION_H */