AnsweredAssumed Answered

stm32f10x_stdperiph_lib warning

Question asked by baird.hal.001 on Jul 10, 2011
Latest reply on Jul 11, 2011 by baird.hal.001

In my IAR EWARM version 6.20 STM32 library, both stm32f10x_rcc.c and stm32f10x_dma.c have duplicate #define FLAG_Mask statements, producing a warning at compile time.

I redefined the RCC statement and its usage to RCC_FLAG_Mask and all is well. Redefining the DMA statement and all DMA usage to DMA_FLAG_Mask will reduce the probability of application code tripping on the same warning.

This probably occurs on other development IDEs as well.

Cheers, Hal

Outcomes