STM32: Fix for compilation introduced by last backup RAM change. Not sure it it is correct, be now things do compile

This commit is contained in:
Gregory Nutt 2015-02-21 17:51:03 -06:00
parent 63711ad338
commit 0dc70108b8
2 changed files with 6 additions and 0 deletions

View File

@ -131,6 +131,7 @@ void stm32_pwr_enablebkp(bool writable)
*
************************************************************************************/
#if defined(CONFIG_STM32_STM32F20XX) || defined(CONFIG_STM32_STM32F40XX)
void stm32_pwr_enablebreg(bool regon)
{
uint16_t regval;
@ -145,6 +146,7 @@ void stm32_pwr_enablebreg(bool regon)
while ((stm32_pwr_getreg(STM32_PWR_CSR_OFFSET) & PWR_CSR_BRR) == 0);
}
}
#endif
/************************************************************************************
* Name: stm32_pwr_setvos

View File

@ -102,7 +102,11 @@ void stm32_pwr_enablebkp(bool writable);
*
************************************************************************************/
#if defined(CONFIG_STM32_STM32F20XX) || defined(CONFIG_STM32_STM32F40XX)
void stm32_pwr_enablebreg(bool regon);
#else
# define stm32_pwr_enablebreg(regon)
#endif
/************************************************************************************
* Name: stm32_pwr_setvos