commit | 15e6baf79e15a9fb0eef4ac4df723f05239c4042 | [log] [tgz] |
---|---|---|
author | Rania JMAI <rania.jmai@st.com> | Mon Feb 27 15:29:40 2023 +0100 |
committer | Rania JMAI <rania.jmai@st.com> | Mon Feb 27 15:29:40 2023 +0100 |
tree | 6ab74dfb62171050fa80a56120b9ba2f1d320ac4 | |
parent | 6edd7f8bdeba46eb4d83e52d02b2b38a279e4f84 [diff] |
[HAL][GENERIC] Allow redefinition of macro UNUSED(x)
diff --git a/Inc/stm32f2xx_hal_def.h b/Inc/stm32f2xx_hal_def.h index c1800f8..c683e9a 100644 --- a/Inc/stm32f2xx_hal_def.h +++ b/Inc/stm32f2xx_hal_def.h
@@ -54,7 +54,9 @@ /* Exported macro ------------------------------------------------------------*/ +#if !defined(UNUSED) #define UNUSED(X) (void)X /* To avoid gcc/g++ warnings */ +#endif /* UNUSED */ #define HAL_MAX_DELAY 0xFFFFFFFFU