commit | 29e926a1f92ad4405717cd467cf336762d884163 | [log] [tgz] |
---|---|---|
author | houssine BOUGUERBA <houssine.bougerba-ext@st.com> | Fri Feb 17 16:07:17 2023 +0100 |
committer | houssine BOUGUERBA <houssine.bougerba-ext@st.com> | Fri Feb 17 16:09:10 2023 +0100 |
tree | e163196d361eb1e69b54d091ecfc01efebdaae25 | |
parent | a4d4011e08abea42cb6cbb7764e1a0c4e91c6fb5 [diff] |
[HAL][GENERIC] Allow redefinition of macro UNUSED(x)
diff --git a/Inc/stm32l4xx_hal_def.h b/Inc/stm32l4xx_hal_def.h index 4c55db6..82bf21e 100644 --- a/Inc/stm32l4xx_hal_def.h +++ b/Inc/stm32l4xx_hal_def.h
@@ -54,7 +54,9 @@ /* Exported macros -----------------------------------------------------------*/ +#if !defined(UNUSED) #define UNUSED(X) (void)X /* To avoid gcc/g++ warnings */ +#endif /* UNUSED */ #define HAL_MAX_DELAY 0xFFFFFFFFU