gonzui


Format: Advanced Search

SearchGoogle itResults 1 - 1 of 1 for funcall:out_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
49:         /* stop timer */
50:         out_w(TI_OP, 0);
51: 
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: 
59:         /* enable timer */
60:         out_w(TI_OP, TM_EN);
61:         while ( (in_w(TI_SCLR) & TM_SCLR) != 0 );
64: /* set counter */ 65: out_w(TI_SET, 0xffffffff); 66: 67: /* start timer counting */ 68: out_w(TI_OP, TSTART|TM_EN); 69:
79: /* stop timer */ 80: out_w(TI_OP, 0); 81: 82: /* stop clock */ 83: out_w(GCLKCTRL3, in_w(GCLKCTRL3) & ~TI0_TIN_GCK); 84: