PWR_ClearFlag() STD 1.5.0 drivers STM32F4xx
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2015-03-23 7:16 AM
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
Labels:
- Labels:
-
Power
0 REPLIES 0
