HAL_ChibiOS: enable UART inversion on H7

This commit is contained in:
Andrew Tridgell 2019-03-01 11:15:18 +11:00
parent 397ddbd2d0
commit 7e1048c89b
1 changed files with 1 additions and 1 deletions

View File

@ -1168,7 +1168,7 @@ bool UARTDriver::set_options(uint8_t options)
uint32_t cr3 = sd->usart->CR3;
bool was_enabled = (sd->usart->CR1 & USART_CR1_UE);
#ifdef STM32F7
#if defined(STM32F7) || defined(STM32H7)
// F7 has built-in support for inversion in all uarts
if (options & OPTION_RXINV) {
cr2 |= USART_CR2_RXINV;