Skip to content

Commit

Permalink
cpu/stm32: all stm32 families now provide pm support
Browse files Browse the repository at this point in the history
  • Loading branch information
aabadie committed Mar 21, 2019
1 parent ac1995b commit 53ff19a
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 22 deletions.
3 changes: 3 additions & 0 deletions cpu/stm32_common/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ export CFLAGS += -DCPU_FAM_$(FAM)
# include common periph module
USEMODULE += periph_common

# All stm32 families provide pm support
USEMODULE += pm_layered

# include stm32 common functions and stm32 common periph drivers
USEMODULE += stm32_common stm32_common_periph

Expand Down
6 changes: 0 additions & 6 deletions cpu/stm32_common/include/periph_cpu_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ extern "C" {
* @name PM definitions
* @{
*/
#if defined(CPU_FAM_STM32F0) || defined(CPU_FAM_STM32F1) || \
defined(CPU_FAM_STM32F2) || defined(CPU_FAM_STM32F4) || \
defined(CPU_FAM_STM32F7) || defined(CPU_FAM_STM32L0) || \
defined(CPU_FAM_STM32L1) || defined(CPU_FAM_STM32L4) || \
defined(DOXYGEN)
/**
* @brief Number of usable low power modes
*/
Expand All @@ -102,7 +97,6 @@ extern "C" {
*/
#define PM_EWUP_CONFIG (0U)
#endif
#endif
/** @} */

/**
Expand Down
2 changes: 0 additions & 2 deletions cpu/stm32f0/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
export CPU_ARCH = cortex-m0
export CPU_FAM = stm32f0

USEMODULE += pm_layered

include $(RIOTCPU)/stm32_common/Makefile.include
include $(RIOTMAKE)/arch/cortexm.inc.mk
2 changes: 0 additions & 2 deletions cpu/stm32f1/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
export CPU_ARCH = cortex-m3
export CPU_FAM = stm32f1

USEMODULE += pm_layered

include $(RIOTCPU)/stm32_common/Makefile.include
include $(RIOTMAKE)/arch/cortexm.inc.mk
2 changes: 0 additions & 2 deletions cpu/stm32f2/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
export CPU_ARCH = cortex-m3
export CPU_FAM = stm32f2

USEMODULE += pm_layered

include $(RIOTCPU)/stm32_common/Makefile.include
include $(RIOTMAKE)/arch/cortexm.inc.mk
2 changes: 0 additions & 2 deletions cpu/stm32f4/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
export CPU_ARCH = cortex-m4f
export CPU_FAM = stm32f4

USEMODULE += pm_layered

include $(RIOTCPU)/stm32_common/Makefile.include
include $(RIOTMAKE)/arch/cortexm.inc.mk
2 changes: 0 additions & 2 deletions cpu/stm32f7/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
export CPU_ARCH = cortex-m7
export CPU_FAM = stm32f7

USEMODULE += pm_layered

include $(RIOTCPU)/stm32_common/Makefile.include
include $(RIOTMAKE)/arch/cortexm.inc.mk
2 changes: 0 additions & 2 deletions cpu/stm32l0/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
export CPU_ARCH = cortex-m0plus
export CPU_FAM = stm32l0

USEMODULE += pm_layered

include $(RIOTCPU)/stm32_common/Makefile.include
include $(RIOTMAKE)/arch/cortexm.inc.mk
2 changes: 0 additions & 2 deletions cpu/stm32l1/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
export CPU_ARCH = cortex-m3
export CPU_FAM = stm32l1

USEMODULE += pm_layered

include $(RIOTCPU)/stm32_common/Makefile.include
include $(RIOTMAKE)/arch/cortexm.inc.mk
2 changes: 0 additions & 2 deletions cpu/stm32l4/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
export CPU_ARCH = cortex-m4f
export CPU_FAM = stm32l4

USEMODULE += pm_layered

include $(RIOTCPU)/stm32_common/Makefile.include
include $(RIOTMAKE)/arch/cortexm.inc.mk

0 comments on commit 53ff19a

Please sign in to comment.