PVD for STM32F4x code cleanups.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3623 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
590fe7872d
commit
3ff51b09a4
|
@ -74,9 +74,8 @@ void hal_lld_init(void) {
|
||||||
SysTick_CTRL_TICKINT_Msk;
|
SysTick_CTRL_TICKINT_Msk;
|
||||||
|
|
||||||
#if STM32_PVD_ENABLE
|
#if STM32_PVD_ENABLE
|
||||||
/* Power voltage detector initialization */
|
/* Programmable voltage detector initialization */
|
||||||
PWR->CR |= PWR_CR_PVDE;
|
PWR->CR |= PWR_CR_PVDE | (STM32_PLS & STM32_PLS_MASK);
|
||||||
PWR->CR |= STM32_PLS & STM32_PLS_MASK;
|
|
||||||
#endif /* STM32_PVD_ENABLE */
|
#endif /* STM32_PVD_ENABLE */
|
||||||
|
|
||||||
#if defined(STM32_DMA_REQUIRED)
|
#if defined(STM32_DMA_REQUIRED)
|
||||||
|
|
|
@ -549,14 +549,14 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Enables or disables the power voltage detector.
|
* @brief Enables or disables the programmable voltage detector.
|
||||||
*/
|
*/
|
||||||
#if !defined(STM32_PVD_ENABLE) || defined(__DOXYGEN__)
|
#if !defined(STM32_PVD_ENABLE) || defined(__DOXYGEN__)
|
||||||
#define STM32_PVD_ENABLE FALSE
|
#define STM32_PVD_ENABLE FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Enables or disables the power voltage detector.
|
* @brief Sets voltage level for programmable voltage detector.
|
||||||
*/
|
*/
|
||||||
#if !defined(STM32_PLS) || defined(__DOXYGEN__)
|
#if !defined(STM32_PLS) || defined(__DOXYGEN__)
|
||||||
#define STM32_PLS STM32_PLS_LEV0
|
#define STM32_PLS STM32_PLS_LEV0
|
||||||
|
|
Loading…
Reference in New Issue