Skip to content

Commit

Permalink
fixup! fixup! fixup! riscv_common: Refactor common fe310 code to risc…
Browse files Browse the repository at this point in the history
…v_common
  • Loading branch information
bergzand committed Jan 15, 2021
1 parent 390dd43 commit b045327
Show file tree
Hide file tree
Showing 20 changed files with 70 additions and 1,371 deletions.
2 changes: 2 additions & 0 deletions cpu/fe310/Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ FEATURES_REQUIRED += periph_plic
ifneq (,$(filter periph_rtc,$(USEMODULE)))
FEATURES_REQUIRED += periph_rtt
endif

include $(RIOTCPU)/riscv_common/Makefile.dep
3 changes: 1 addition & 2 deletions cpu/fe310/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
#include "periph/init.h"
#include "periph_conf.h"

#include "vendor/encoding.h"
#include "vendor/plic_driver.h"
#include "vendor/riscv_csr.h"

#include "stdio_uart.h"

Expand Down
2 changes: 2 additions & 0 deletions cpu/fe310/include/cpu_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
extern "C" {
#endif

#define CLINT_BASE_ADDR (CLINT_CTRL_ADDR)

#ifdef __cplusplus
}
#endif
Expand Down
Loading

0 comments on commit b045327

Please sign in to comment.