Skip to content

Commit

Permalink
updated uart clock definitions per SVD
Browse files Browse the repository at this point in the history
  • Loading branch information
EricB-ADI committed Oct 14, 2024
1 parent d9028b4 commit 536cbc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/PeriphDrivers/Source/UART/uart_me21.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ int MXC_UART_GetFrequency(mxc_uart_regs_t *uart)

// check if UARt is LP UART
if (uart == MXC_UART3) {
if ((uart->ctrl & MXC_F_UART_CTRL_BCLKSRC) == MXC_S_UART_CTRL_BCLKSRC_EXTERNAL_CLOCK) {
if ((uart->ctrl & MXC_F_UART_CTRL_BCLKSRC) == MXC_S_UART_REVB_CTRL_BCLKSRC_CLK1) {
periphClock = EXTCLK2_FREQ * 2;
} else if ((uart->ctrl & MXC_F_UART_CTRL_BCLKSRC) ==
MXC_S_UART_CTRL_BCLKSRC_PERIPHERAL_CLOCK) {
Expand Down

0 comments on commit 536cbc9

Please sign in to comment.