/* Clockevent device Clock event device set mode function  */
static void clockevent_tmr_set_mode(enum clock_event_mode mode, struct clock_event_device *clk)
/* Clockevent device Clock event device set mode function  */
static void clockevent_tmr_set_mode(enum clock_event_mode mode, struct clock_event_device *clk)
{
	switch (mode) {
	case CLOCK_EVT_MODE_PERIODIC:
		kinetis_pit_enable(KINETIS_CLOCKEVENT_PIT, 1);
		break;
	case CLOCK_EVT_MODE_ONESHOT:
	case CLOCK_EVT_MODE_UNUSED:
	case CLOCK_EVT_MODE_SHUTDOWN:
	default:
		kinetis_pit_enable(KINETIS_CLOCKEVENT_PIT, 0);
		break;
	}
}