fractalclone / zephyr-riscv

Zephyr port to riscv architecture
Apache License 2.0
24 stars 10 forks source link

Macro SYS_CLOCK_HW_CYCLES_TO_NS broken #9

Open timoML opened 7 years ago

timoML commented 7 years ago

Calling the macro SYS_CLOCK_HW_CYCLES_TO_NS() defined in include/sys_clock.h breaks the build for me. Can't even see the Zephyr booting message anymore. Platform is a SiFive Arty FE310 development board.

I assume that casting to u64_t in SYS_CLOCK_HW_CYCLES_TO_NS64() isn't a good idea on RISCV32.

Version of Zephyr OS: 1.8.99 Version of Zephyr SDK: 0.9.1