Skip to content

Commit

Permalink
fix(BLE): Update PAL UART to derive clock via IBRO (#1236)
Browse files Browse the repository at this point in the history
  • Loading branch information
EricB-ADI authored Oct 21, 2024
1 parent 8c24d39 commit 06330ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,14 +295,8 @@ void PalUartInit(PalUartId_t id, const PalUartConfig_t *pCfg)
palUartCb[uartNum].rdCback = pCfg->rdCback;
palUartCb[uartNum].wrCback = pCfg->wrCback;

/* Initialize the UART */
if(uartNum == 3) {
/* Use the IBRO clock for UART3 */
result = MXC_UART_Init(MXC_UART_GET_UART(uartNum), pCfg->baud, MXC_UART_IBRO_CLK);
} else {
/* Use the APB clock for rest of the UARTs */
result = MXC_UART_Init(MXC_UART_GET_UART(uartNum), pCfg->baud, MXC_UART_APB_CLK);
}
result = MXC_UART_Init(MXC_UART_GET_UART(uartNum), pCfg->baud, MXC_UART_IBRO_CLK);


(void)result;
PAL_SYS_ASSERT(result == 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,14 +301,7 @@ void PalUartInit(PalUartId_t id, const PalUartConfig_t *pCfg)
palUartCb[uartNum].rdCback = pCfg->rdCback;
palUartCb[uartNum].wrCback = pCfg->wrCback;

/* Initialize the UART */
if(uartNum == 3) {
/* Use the IBRO clock for UART3 */
result = MXC_UART_Init(MXC_UART_GET_UART(uartNum), pCfg->baud, MXC_UART_IBRO_CLK);
} else {
/* Use the APB clock for rest of the UARTs */
result = MXC_UART_Init(MXC_UART_GET_UART(uartNum), pCfg->baud, MXC_UART_APB_CLK);
}
result = MXC_UART_Init(MXC_UART_GET_UART(uartNum), pCfg->baud, MXC_UART_IBRO_CLK);

(void)result;
PAL_SYS_ASSERT(result == 0);
Expand Down

0 comments on commit 06330ac

Please sign in to comment.