static void __init sama5_dt_timer_init(void) { #if defined(CONFIG_COMMON_CLK) of_clk_init(NULL); #endif at91sam926x_pit_init(); }
/** * This function will init pit for system ticks */ void rt_hw_timer_init() { at91sam926x_pit_init(); /* install interrupt handler */ rt_hw_interrupt_install(AT91_ID_SYS, rt_timer_handler, RT_NULL); rt_hw_interrupt_umask(AT91_ID_SYS); }