Skip to content

Commit

Permalink
zephyr: Initialize timer on boot
Browse files Browse the repository at this point in the history
Fixes #112.
  • Loading branch information
m42uko committed Dec 3, 2023
1 parent c676c5e commit ff5b25f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zephyr/drivers/timer/serv_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,6 @@ uint32_t sys_timer_cycle_get_32(void)
{
return mtime();
}

SYS_INIT(sys_clock_driver_init, PRE_KERNEL_2,
CONFIG_SYSTEM_CLOCK_INIT_PRIORITY);

0 comments on commit ff5b25f

Please sign in to comment.