cancel
Showing results for 
Search instead for 
Did you mean: 

PWR_ClearFlag() STD 1.5.0 drivers STM32F4xx

tm3341
Associate II
Posted on March 23, 2015 at 15:16

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
0 REPLIES 0