Searched refs:div (Results 1 – 2 of 2) sorted by relevance
96 uint32_t baseClk, div, intPart, fraPart; in usartOpen() local119 div = (baseClk * 25) / (baud * 2); in usartOpen()120 intPart = div / 100; in usartOpen()121 fraPart = div % 100; in usartOpen()
176 unsigned int div; in stmSpiEnable() local182 div = pclk / mode->speed; in stmSpiEnable()183 if (div > SPI_CR1_BR_MAX) in stmSpiEnable()185 else if (div < SPI_CR1_BR_MIN) in stmSpiEnable()186 div = SPI_CR1_BR_MIN; in stmSpiEnable()198 regs->CR1 |= SPI_CR1_BR(div); in stmSpiEnable()