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.
This commit is contained in:
Marian Buschsieweke 2019-01-19 12:38:44 +01:00
parent f91f62155d
commit 08fba76fa6
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F
2 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,7 @@ USEMODULE += newlib_syscalls_fe310
USEMODULE += sifive_drivers_fe310
USEMODULE += periph
USEMODULE += periph_common
USEMODULE += periph_pm
CFLAGS += -Wno-pedantic

View File

@ -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();
}
/**