include: zephyr: sys: time_units: Type cast SYS_CLOCK_HW_CYCLES_PER_SEC
Type case CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC to uint32_t while defining sys_clock_hw_cycles_per_sec_runtime_get() to extend the range of frequency to 0xffffffff. Signed-off-by: Anisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
This commit is contained in:
parent
38caff2886
commit
98dba7da7c
4 changed files with 7 additions and 7 deletions
|
@ -44,7 +44,7 @@ void timer(void)
|
|||
printk("TIMER: unknown");
|
||||
#endif
|
||||
|
||||
printk(", configured frequency = %dHz\n",
|
||||
printk(", configured frequency = %uHz\n",
|
||||
sys_clock_hw_cycles_per_sec());
|
||||
|
||||
#if defined(CONFIG_COUNTER_CMOS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue