cpu: atmega_common: adapt to periph/pm

This commit is contained in:
Kaspar Schleiser 2017-01-09 18:36:14 +01:00
parent f42e5381ee
commit 3e365b89fa
2 changed files with 5 additions and 3 deletions

View File

@ -12,6 +12,7 @@ export LINKFLAGS += -Wl,--gc-sections -static -lgcc
# export the peripheral drivers to be linked into the final binary # export the peripheral drivers to be linked into the final binary
export USEMODULE += periph export USEMODULE += periph
export USEMODULE += periph_common
# the atmel port uses uart_stdio # the atmel port uses uart_stdio
export USEMODULE += uart_stdio export USEMODULE += uart_stdio

View File

@ -12,7 +12,7 @@
* @{ * @{
* *
* @file * @file
* @brief Implementation of the kernels reboot interface * @brief Implementation of common AVR periph/pm functions
* *
* @author Hinnerk van Bruinehsen <h.v.bruinehsen@fu-berlin.de> * @author Hinnerk van Bruinehsen <h.v.bruinehsen@fu-berlin.de>
* @author Kaspar Schleiser <kaspar@schleiser.de> * @author Kaspar Schleiser <kaspar@schleiser.de>
@ -22,9 +22,10 @@
#include <avr/wdt.h> #include <avr/wdt.h>
#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 * Since the AVR doesn't support a real software reset, we set the Watchdog