33 #include "em_timer_types.h"
35 #define TMR_DBG_PRINT(fmt, ...) \
36 EM_DBG("TMRDBG: %s(): " fmt, __func__, ## __VA_ARGS__)
45 odp_timer_clk_src_t *clksrc_odp )
48 case EM_TIMER_CLKSRC_0:
49 *clksrc_odp = ODP_CLOCK_SRC_0;
51 case EM_TIMER_CLKSRC_1:
52 *clksrc_odp = ODP_CLOCK_SRC_1;
54 case EM_TIMER_CLKSRC_2:
55 *clksrc_odp = ODP_CLOCK_SRC_2;
57 case EM_TIMER_CLKSRC_3:
58 *clksrc_odp = ODP_CLOCK_SRC_3;
60 case EM_TIMER_CLKSRC_4:
61 *clksrc_odp = ODP_CLOCK_SRC_4;
63 case EM_TIMER_CLKSRC_5:
64 *clksrc_odp = ODP_CLOCK_SRC_5;
73 timer_clksrc_odp2em(odp_timer_clk_src_t clksrc_odp,
78 *clksrc_em = EM_TIMER_CLKSRC_0;
81 *clksrc_em = EM_TIMER_CLKSRC_1;
84 *clksrc_em = EM_TIMER_CLKSRC_2;
87 *clksrc_em = EM_TIMER_CLKSRC_3;
90 *clksrc_em = EM_TIMER_CLKSRC_4;
93 *clksrc_em = EM_TIMER_CLKSRC_5;