mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 17:48:54 +08: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:
@@ -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)
|
void stm32_pwr_enablebreg(bool regon)
|
||||||
{
|
{
|
||||||
uint16_t regval;
|
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);
|
while ((stm32_pwr_getreg(STM32_PWR_CSR_OFFSET) & PWR_CSR_BRR) == 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: stm32_pwr_setvos
|
* 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);
|
void stm32_pwr_enablebreg(bool regon);
|
||||||
|
#else
|
||||||
|
# define stm32_pwr_enablebreg(regon)
|
||||||
|
#endif
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: stm32_pwr_setvos
|
* Name: stm32_pwr_setvos
|
||||||
|
|||||||
Reference in New Issue
Block a user