Lines Matching defs:divisor
335 int divisor = 0;
344 divisor = GRBEEP_INPUT_FREQ / freq;
346 if (divisor > GRBEEP_DIVISOR_MAX) {
347 divisor = GRBEEP_DIVISOR_MAX;
348 } else if (divisor < GRBEEP_DIVISOR_MIN) {
349 divisor = GRBEEP_DIVISOR_MIN;
353 (divisor & 0xff), ((divisor & 0xff00) >> 8)));
355 GRBEEP_WRITE_FREQ_DIVISOR_REG(divisor & 0xff);
356 GRBEEP_WRITE_FREQ_DIVISOR_REG((divisor & 0xff00) >> 8);