Lines Matching refs:numerator
115 uint32_t numerator; in UART_SetBaudRate() local
122 numerator = clockRate; in UART_SetBaudRate()
129 denominator = numerator % denominator; in UART_SetBaudRate()
130 numerator = divisor; in UART_SetBaudRate()
133 numerator = clockRate / divisor; in UART_SetBaudRate()
138 if ((numerator > (UART_UBIR_INC_MASK * 7)) || in UART_SetBaudRate()
141 uint32_t m = (numerator - 1) / (UART_UBIR_INC_MASK * 7) + 1; in UART_SetBaudRate()
144 numerator /= max; in UART_SetBaudRate()
146 if (0 == numerator) in UART_SetBaudRate()
147 numerator = 1; in UART_SetBaudRate()
151 divider = (numerator - 1) / UART_UBIR_INC_MASK + 1; in UART_SetBaudRate()
183 UART_UBMR_REG(base) = UART_UBMR_MOD(numerator / divider - 1); in UART_SetBaudRate()