Question
Macro for different DMA types
I am making an application using the STM32 drivers. Currently, I am using the following macro defined in the 'Device' drivers to distinguish the chip families:
/**
* @brief STM32 Family
*/
#if !defined (STM32F4)
#define STM32F4
#endif /* STM32F4 */
As we know, STM32F2/F4 and F7 have a different type of DMA implementation than STM32H5, leading to differences in elements in DMA_InitTypeDef and DMA_HandleTypeDef structures.
Is there a macro that will help us distinguish these DMA types, rather than the chip family macro?
