From 3ff51b09a448a0986cdfd388b40a790bf5033a32 Mon Sep 17 00:00:00 2001 From: barthess Date: Sat, 17 Dec 2011 11:36:46 +0000 Subject: PVD for STM32F4x code cleanups. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3623 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32F4xx/hal_lld.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'os/hal/platforms/STM32F4xx/hal_lld.c') diff --git a/os/hal/platforms/STM32F4xx/hal_lld.c b/os/hal/platforms/STM32F4xx/hal_lld.c index b2862caa4..d33237c2d 100644 --- a/os/hal/platforms/STM32F4xx/hal_lld.c +++ b/os/hal/platforms/STM32F4xx/hal_lld.c @@ -74,9 +74,8 @@ void hal_lld_init(void) { SysTick_CTRL_TICKINT_Msk; #if STM32_PVD_ENABLE - /* Power voltage detector initialization */ - PWR->CR |= PWR_CR_PVDE; - PWR->CR |= STM32_PLS & STM32_PLS_MASK; + /* Programmable voltage detector initialization */ + PWR->CR |= PWR_CR_PVDE | (STM32_PLS & STM32_PLS_MASK); #endif /* STM32_PVD_ENABLE */ #if defined(STM32_DMA_REQUIRED) -- cgit v1.2.3