diff --git a/cpu/atmega_common/Makefile.include b/cpu/atmega_common/Makefile.include index a6c989505e..9bfa137a0a 100644 --- a/cpu/atmega_common/Makefile.include +++ b/cpu/atmega_common/Makefile.include @@ -12,6 +12,7 @@ export LINKFLAGS += -Wl,--gc-sections -static -lgcc # export the peripheral drivers to be linked into the final binary export USEMODULE += periph +export USEMODULE += periph_common # the atmel port uses uart_stdio export USEMODULE += uart_stdio diff --git a/cpu/atmega_common/reboot_arch.c b/cpu/atmega_common/periph/pm.c similarity index 85% rename from cpu/atmega_common/reboot_arch.c rename to cpu/atmega_common/periph/pm.c index c828264a2b..be419602fd 100644 --- a/cpu/atmega_common/reboot_arch.c +++ b/cpu/atmega_common/periph/pm.c @@ -12,7 +12,7 @@ * @{ * * @file - * @brief Implementation of the kernels reboot interface + * @brief Implementation of common AVR periph/pm functions * * @author Hinnerk van Bruinehsen * @author Kaspar Schleiser @@ -22,9 +22,10 @@ #include -#include "cpu.h" +#include "irq.h" +#include "periph/pm.h" -void reboot(void) +void pm_reboot(void) { /* * Since the AVR doesn't support a real software reset, we set the Watchdog