mirror of
https://github.com/apache/nuttx.git
synced 2026-09-01 14:43:02 +00:00
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:
parent
63711ad338
commit
0dc70108b8
2 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue