Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/new_apis' into new_…
Browse files Browse the repository at this point in the history
…apis
  • Loading branch information
kanndil committed Jan 20, 2025
2 parents bc42247 + 9854fc1 commit 43d69be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fw/EF_UART.c
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ EF_DRIVER_STATUS UART_Init(EF_UART_TYPE_PTR uart, uint32_t baud_rate, uint32_t b
}

// Calculate and set the prescaler
uint32_t prescaler = (bus_clock / (baud_rate * (uint32_t)16)) - (uint32_t)1;
uint32_t prescaler = (bus_clock / (baud_rate * (uint32_t)8)) - (uint32_t)1;
if (status == EF_DRIVER_OK) {status = EF_UART_setPrescaler(uart, prescaler);} else {}

// Configure data bits, stop bits, and parity
Expand Down

0 comments on commit 43d69be

Please sign in to comment.