From b3cf267705758a305a59b2d31e76e752d84a204c Mon Sep 17 00:00:00 2001 From: Nathaniel Graff Date: Fri, 21 Jun 2019 14:42:20 -0700 Subject: Fix OpenOCD cfg and remove warnings Fix OpenOCD config generator for hifive boards Remove some warnings for FE310-compatible targets related to clocks and the PRCI. Signed-off-by: Nathaniel Graff --- bsp/qemu-sifive-s51/metal-inline.h | 2 +- bsp/qemu-sifive-s51/metal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'bsp/qemu-sifive-s51') diff --git a/bsp/qemu-sifive-s51/metal-inline.h b/bsp/qemu-sifive-s51/metal-inline.h index 6ef4db2..3a23702 100644 --- a/bsp/qemu-sifive-s51/metal-inline.h +++ b/bsp/qemu-sifive-s51/metal-inline.h @@ -12,7 +12,7 @@ /* --------------------- fixed_clock ------------ */ -extern inline unsigned long __metal_driver_fixed_clock_rate(struct metal_clock *clock); +extern inline unsigned long __metal_driver_fixed_clock_rate(const struct metal_clock *clock); /* --------------------- fixed_factor_clock ------------ */ diff --git a/bsp/qemu-sifive-s51/metal.h b/bsp/qemu-sifive-s51/metal.h index e61ca6e..8022370 100644 --- a/bsp/qemu-sifive-s51/metal.h +++ b/bsp/qemu-sifive-s51/metal.h @@ -146,7 +146,7 @@ struct __metal_driver_sifive_fe310_g000_prci __metal_dt_prci_10008000; /* --------------------- fixed_clock ------------ */ -static inline unsigned long __metal_driver_fixed_clock_rate(struct metal_clock *clock) +static inline unsigned long __metal_driver_fixed_clock_rate(const struct metal_clock *clock) { if ((uintptr_t)clock == (uintptr_t)&__metal_dt_clock_0) { return METAL_FIXED_CLOCK_0_CLOCK_FREQUENCY; -- cgit v1.2.1-18-gbd029