Oops... fix an error in an assertion of last commit
This commit is contained in:
parent
77a622da0b
commit
28ac9e5841
@ -212,7 +212,7 @@ static void efm32_uart_setbaud(uintptr_t base, uint32_t baud)
|
|||||||
putreg32(regval, base + EFM32_USART_CTRL_OFFSET);
|
putreg32(regval, base + EFM32_USART_CTRL_OFFSET);
|
||||||
|
|
||||||
regval = (uint32_t)clkdiv << _USART_CLKDIV_DIV_SHIFT;
|
regval = (uint32_t)clkdiv << _USART_CLKDIV_DIV_SHIFT;
|
||||||
DEBUGASSERT((regval & _USART_CLKDIV_MASK) == clkdiv);
|
DEBUGASSERT((regval & _USART_CLKDIV_MASK) == regval);
|
||||||
putreg32(regval, base + EFM32_USART_CLKDIV_OFFSET);
|
putreg32(regval, base + EFM32_USART_CLKDIV_OFFSET);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user