From 08fba76fa688cd7a969e841cbef66afa837d2731 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Sat, 19 Jan 2019 12:38:44 +0100 Subject: [PATCH] cpu/fe310: Add call to periph_init() Until now fe310's cpu_init() was missing a call to periph_init(). This commit adds this call. --- cpu/fe310/Makefile.include | 1 + cpu/fe310/cpu.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/cpu/fe310/Makefile.include b/cpu/fe310/Makefile.include index 564abaa5b3..9f8e7ad150 100644 --- a/cpu/fe310/Makefile.include +++ b/cpu/fe310/Makefile.include @@ -5,6 +5,7 @@ USEMODULE += newlib_syscalls_fe310 USEMODULE += sifive_drivers_fe310 USEMODULE += periph +USEMODULE += periph_common USEMODULE += periph_pm CFLAGS += -Wno-pedantic diff --git a/cpu/fe310/cpu.c b/cpu/fe310/cpu.c index d145738c5b..b8e12ec446 100644 --- a/cpu/fe310/cpu.c +++ b/cpu/fe310/cpu.c @@ -28,6 +28,7 @@ #include "cpu.h" #include "context_frame.h" #include "periph_cpu.h" +#include "periph/init.h" #include "panic.h" #include "vendor/encoding.h" #include "vendor/platform.h" @@ -88,6 +89,9 @@ void cpu_init(void) /* Set default state of mstatus */ set_csr(mstatus, MSTATUS_DEFAULT); + + /* trigger static peripheral initialization */ + periph_init(); } /**