From c6962c5700f99441538dafa346626bb7e6d12488 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 30 Mar 2022 13:22:19 +0200 Subject: sock api fixed; net reply messages fixed --- fw/fe310/bsp/drivers/prci_driver.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'fw/fe310/bsp/drivers/prci_driver.c') diff --git a/fw/fe310/bsp/drivers/prci_driver.c b/fw/fe310/bsp/drivers/prci_driver.c index c2df2c9..29118a2 100644 --- a/fw/fe310/bsp/drivers/prci_driver.c +++ b/fw/fe310/bsp/drivers/prci_driver.c @@ -51,16 +51,16 @@ uint32_t PRCI_measure_mcycle_freq(uint32_t mtime_ticks, uint32_t mtime_freq) unsigned long PRCI_get_cpu_freq() { - static uint32_t cpu_freq; + static uint32_t cpu_freq; - if (!cpu_freq) { - // warm up I$ - PRCI_measure_mcycle_freq(3000, RTC_FREQ); - // measure for real - cpu_freq = PRCI_measure_mcycle_freq(3000, RTC_FREQ); - } + if (!cpu_freq) { + // warm up I$ + PRCI_measure_mcycle_freq(3000, RTC_FREQ); + // measure for real + cpu_freq = PRCI_measure_mcycle_freq(3000, RTC_FREQ); + } - return cpu_freq; + return cpu_freq; } void PRCI_use_hfrosc(int div, int trim) -- cgit v1.2.3