2015-03-23 07:16 AM
Hi,
I was searching for some stuff inside PWR module in STD peripheral drivers for STM32F4xx and I realized, that in functionPWR_ClearFlag() there is no option to clear flags if device is STM32F446xx. Please take a look for that. Thank you. Function looks like this (line 1004 in stm32f4xx_pwr.c):void PWR_ClearFlag(uint32_t PWR_FLAG)
{
/* Check the parameters */
assert_param(IS_PWR_CLEAR_FLAG(PWR_FLAG));
#
if
defined (STM32F427_437xx) || defined (STM32F429_439xx)
if
(PWR_FLAG != PWR_FLAG_UDRDY)
{
PWR->CR |= PWR_FLAG << 2;
}
else
{
PWR->CSR |= PWR_FLAG_UDRDY;
}
#
endif
/* STM32F427_437xx || STM32F429_439xx */
#
if
defined (STM32F40_41xxx) || defined (STM32F401xx) || defined (STM32F411xE)
PWR->CR |= PWR_FLAG << 2;
#
endif
/* STM32F40_41xxx || STM32F401xx || STM32F411xE */
}
#no-clear #pwr #clearflag