Skip to content

Commit

Permalink
Update Zephyr MSDK Hal based on MSDK PR: analogdevicesinc/msdk#1164
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user authored and ozersa committed Sep 11, 2024
1 parent d8638ca commit d60214f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions MAX/Libraries/PeriphDrivers/Source/UART/uart_ai87.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ int MXC_UART_SetFrequency(mxc_uart_regs_t *uart, unsigned int baud, mxc_uart_clo
return E_BAD_PARAM;
}

// Default OSR
// Setting LPUART Over-Sampling Rate in MXC_UART_RevB_SetFrequency function overwrites
// the sampling rate set below for the ERTCO.
uart->osr = 5;

unsigned int input_clock_freq = 0;
switch (clock) {
case MXC_UART_APB_CLK:
Expand Down
3 changes: 3 additions & 0 deletions MAX/Libraries/PeriphDrivers/Source/UART/uart_me12.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ int MXC_UART_SetFrequency(mxc_uart_regs_t *uart, unsigned int baud, mxc_uart_clo
return E_BAD_PARAM;
}

// Default OSR
uart->osr = 5;

switch (clock) {
case MXC_UART_APB_CLK:
clock_freq = SystemCoreClock / 2;
Expand Down
3 changes: 3 additions & 0 deletions MAX/Libraries/PeriphDrivers/Source/UART/uart_me30.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ int MXC_UART_SetFrequency(mxc_uart_regs_t *uart, unsigned int baud, mxc_uart_clo
return E_BAD_PARAM;
}

// Default OSR
uart->osr = 5;

switch (clock) {
case MXC_UART_APB_CLK:
clock_freq = PeripheralClock;
Expand Down
3 changes: 3 additions & 0 deletions MAX/Libraries/PeriphDrivers/Source/UART/uart_me55.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ int MXC_UART_SetFrequency(mxc_uart_regs_t *uart, unsigned int baud, mxc_uart_clo
return E_BAD_PARAM;
}

// Default OSR
uart->osr = 5;

switch (clock) {
case MXC_UART_APB_CLK:
clock_freq = SystemCoreClock / 2;
Expand Down
2 changes: 1 addition & 1 deletion MAX/msdk_sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4664d3bad376c6c1f14515a4f3d5f229c3f50432
11dfd2e78540a6b07796a898d5c82978302acaf1

0 comments on commit d60214f

Please sign in to comment.