FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_FreedomStudio/freedom-metal/src/timer.c
/* This implementation serves as a small shim that interfaces with the first
 * timer on a system. */
This implementation serves as a small shim that interfaces with the first
timer on a system.
This implementation serves as a small shim that interfaces with the first timer on a system .
int metal_timer_get_cyclecount(int hartid, unsigned long long *mcc) {
    struct metal_cpu *cpu = metal_cpu_get(hartid);
    if (cpu) {
        *mcc = metal_cpu_get_timer(cpu);
        return 0;
    }
    return -1;
}
int metal_timer_get_cyclecount ( int hartid , unsigned long long * mcc ) { struct metal_cpu * cpu = metal_cpu_get ( hartid ) ; if ( cpu ) { * mcc = metal_cpu_get_timer ( cpu ) ; return 0 ; } return -1 ; }
This implementation serves as a small shim that interfaces with the first
 timer on a system.
This implementation serves as a small shim that interfaces with the first timer on a system .