commit | b2e72c85a61c3ca097ce8e8733292ff86a8b19bb | [log] [tgz] |
---|---|---|
author | Rania JMAI <rania.jmai@st.com> | Mon Feb 27 14:59:50 2023 +0100 |
committer | Rania JMAI <rania.jmai@st.com> | Mon Feb 27 15:01:30 2023 +0100 |
tree | 062c97c1063ab38e2ee136303dad0b1548273e4f | |
parent | 971ba7df92e9763db28bce36f6986ea63c27465f [diff] |
[HAL][GENERIC] Allow redefinition of macro UNUSED(x)
diff --git a/Inc/stm32f1xx_hal_def.h b/Inc/stm32f1xx_hal_def.h index 581142c..0b281a3 100644 --- a/Inc/stm32f1xx_hal_def.h +++ b/Inc/stm32f1xx_hal_def.h
@@ -64,7 +64,9 @@ (__DMA_HANDLE__).Parent = (__HANDLE__); \ } while(0U) +#if !defined(UNUSED) #define UNUSED(X) (void)X /* To avoid gcc/g++ warnings */ +#endif /* UNUSED */ /** @brief Reset the Handle's State field. * @param __HANDLE__ specifies the Peripheral Handle.