1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-31 09:21:19 +01:00

Merge pull request #11167 from fjmolinas/stm32_common_wake_pin_2

cpu/stm32_common: remove WKUP2 pin enable
This commit is contained in:
Alexandre Abadie 2019-03-12 18:11:07 +01:00 committed by GitHub
commit 57e3a7c81c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ void pm_set(unsigned mode)
PWR->CR |= (PWR_CR_PDDS | PWR_CR_CWUF | PWR_CR_CSBF);
/* Enable WKUP pin to use for wakeup from standby mode */
#if defined(CPU_FAM_STM32L0)
PWR->CSR |= (PWR_CSR_EWUP1 | PWR_CSR_EWUP2);
PWR->CSR |= PWR_CSR_EWUP1;
#if !defined(CPU_LINE_STM32L053xx)
/* STM32L053 only have 2 wake pins */
PWR->CSR |= PWR_CSR_EWUP3;