summaryrefslogtreecommitdiff
path: root/bsp/env/freedom-e300-arty
diff options
context:
space:
mode:
authormwachs5 <megan@sifive.com>2017-01-11 14:25:45 -0800
committermwachs5 <megan@sifive.com>2017-01-11 14:25:45 -0800
commitc7f7bec992d3d6787cf001892a24d0660ce192b1 (patch)
treeb65372a7a157ae0ce68c8740754ba9e33be53478 /bsp/env/freedom-e300-arty
parentf9271b91257e0a8a989faf3eff0757ee46694fe0 (diff)
reduce code duplication and apply the same flags to Arty board
Diffstat (limited to 'bsp/env/freedom-e300-arty')
-rw-r--r--bsp/env/freedom-e300-arty/init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bsp/env/freedom-e300-arty/init.c b/bsp/env/freedom-e300-arty/init.c
index 35b1104..a6f4b39 100644
--- a/bsp/env/freedom-e300-arty/init.c
+++ b/bsp/env/freedom-e300-arty/init.c
@@ -73,14 +73,15 @@ uintptr_t handle_trap(uintptr_t mcause, uintptr_t epc)
void _init()
{
+ #ifndef NO_INIT
uart_init(115200);
printf("core freq at %d Hz\n", get_cpu_freq());
write_csr(mtvec, &trap_entry);
+ #endif
}
-
void _fini()
{
}