Fix Error: chip/stm32l4_dfumode.c:45:20: error: unused function 'rcc_reset'

and unused function 'apb_reset'

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-20 12:08:21 +08:00 committed by archer
parent 4cc52f277b
commit 4e6568c29a

View File

@ -42,6 +42,7 @@ typedef void (*boot_call_t)(void);
* Private Functions
****************************************************************************/
#if defined(CONFIG_STM32L4_STM32L4X6) || defined(CONFIG_STM32L4_STM32L4XR)
static inline void rcc_reset(void)
{
uint32_t regval;
@ -110,6 +111,7 @@ static inline void apb_reset(void)
putreg32(0, STM32L4_RCC_AHB2RSTR);
putreg32(0, STM32L4_RCC_AHB3RSTR);
}
#endif
/****************************************************************************
* Public Functions