Oops... fix an error in an assertion of last commit

This commit is contained in:
Gregory Nutt 2014-10-28 12:42:19 -06:00
parent 77a622da0b
commit 28ac9e5841

View File

@ -212,7 +212,7 @@ static void efm32_uart_setbaud(uintptr_t base, uint32_t baud)
putreg32(regval, base + EFM32_USART_CTRL_OFFSET);
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);
}
#endif