/* Configure the timer to generate an interrupt in the specified amount of ticks  */
static int clockevent_tmr_set_next_event(unsigned long delta, struct clock_event_device *c)
/* Configure the timer to generate an interrupt in the specified amount of ticks  */
static int clockevent_tmr_set_next_event(unsigned long delta, struct clock_event_device *c)
{
	unsigned long flags;
	raw_local_irq_save(flags);
	kinetis_pit_init(KINETIS_CLOCKEVENT_PIT, delta);
	kinetis_pit_enable(KINETIS_CLOCKEVENT_PIT, 1);
	raw_local_irq_restore(flags);
	return 0;
}