Skip to content

Commit

Permalink
Revert "Merge pull request ARMmbed#15286 from pilotak/master"
Browse files Browse the repository at this point in the history
This reverts commit 1ab98de, reversing
changes made to 15d1b93.
  • Loading branch information
huanghu578 committed Jun 12, 2022
1 parent 4e7b032 commit 5236cc5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions targets/TARGET_STM/serial_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,12 +629,8 @@ HAL_StatusTypeDef init_uart(serial_t *obj)
#if defined(UART_ONE_BIT_SAMPLE_DISABLE) // F0/F3/F7/G0/H7/L0/L4/L5/WB
huart->Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
#endif
#if defined(UART_PRESCALER_DIV1) // G0/G4/H7/L4/L5/U5/WB/WL
if (obj_s->baudrate < 4800) {
huart->Init.ClockPrescaler = UART_PRESCALER_DIV16;
} else {
huart->Init.ClockPrescaler = UART_PRESCALER_DIV1;
}
#if defined(UART_PRESCALER_DIV1) // G0/H7/L4/L5/WB
huart->Init.ClockPrescaler = UART_PRESCALER_DIV1;
#endif
#if defined(UART_ADVFEATURE_NO_INIT) // F0/F3/F7/G0/H7/L0/L4//5/WB
huart->AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT;
Expand Down

0 comments on commit 5236cc5

Please sign in to comment.