gonzui


Format: Advanced Search

SearchGoogle itResults 1 - 1 of 1 for funcall:in_w from tkernel_2/kernel/sysdepend/device/tef_em1d/cntwus.c (0.00 seconds)
tkernel_2
kernel/sysdepend/device/tef_em1d/cntwus.c - 2.7KB - 97 lines
52:         /* select clock */
53:         out_w(TI0TIN_SEL, (in_w(TI0TIN_SEL) & ~3) | TITIN_PLL3);
54: 
55:         /* supply clock */
56:         out_w(GCLKCTRL3ENA, in_w(GCLKCTRL3ENA) | TI0_TIN_GCK);
57:         out_w(GCLKCTRL3,    in_w(GCLKCTRL3)    | TI0_TIN_GCK);
58: 
60: out_w(TI_OP, TM_EN); 61: while ( (in_w(TI_SCLR) & TM_SCLR) != 0 ); 62: WaitLoop(100);
72: /* measurement */ 73: t0 = in_w(TI_RCR); 74: WaitLoop(1001); 75: t1 = in_w(TI_RCR); 76: WaitLoop(21001); 77: t2 = in_w(TI_RCR); 78:
82: /* stop clock */ 83: out_w(GCLKCTRL3, in_w(GCLKCTRL3) & ~TI0_TIN_GCK); 84:
94: */ 95: d = in_w(DIVTIMTIN); 96: SCInfo.loop64us = TIN_CLK(d) / (cnt * (50/2)) * (64/2);