Lines Matching refs:control_value
147 unsigned int control_value;
150 control_value = read_4(TIMER_TM_CR_REG);
158 control_value &= ~(TIMER1_CLOCK_SOURCE);
159 control_value |= TIMER1_UP_DOWN_COUNT;
166 control_value &= ~(TIMER2_CLOCK_SOURCE);
167 control_value &= ~(TIMER2_UP_DOWN_COUNT);
171 write_4(control_value, TIMER_TM_CR_REG);
181 unsigned int control_value;
183 control_value = read_4(TIMER_TM_CR_REG);
185 control_value |= TIMER1_OVERFLOW_ENABLE;
186 control_value |= TIMER1_ENABLE;
187 control_value |= TIMER2_OVERFLOW_ENABLE;
188 control_value |= TIMER2_ENABLE;
190 write_4(control_value, TIMER_TM_CR_REG);