File tree Expand file tree Collapse file tree 2 files changed +3
-16
lines changed
Libraries/Cordio/platform/targets/maxim Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -295,14 +295,8 @@ void PalUartInit(PalUartId_t id, const PalUartConfig_t *pCfg)
295295 palUartCb [uartNum ].rdCback = pCfg -> rdCback ;
296296 palUartCb [uartNum ].wrCback = pCfg -> wrCback ;
297297
298- /* Initialize the UART */
299- if (uartNum == 3 ) {
300- /* Use the IBRO clock for UART3 */
301- result = MXC_UART_Init (MXC_UART_GET_UART (uartNum ), pCfg -> baud , MXC_UART_IBRO_CLK );
302- } else {
303- /* Use the APB clock for rest of the UARTs */
304- result = MXC_UART_Init (MXC_UART_GET_UART (uartNum ), pCfg -> baud , MXC_UART_APB_CLK );
305- }
298+ result = MXC_UART_Init (MXC_UART_GET_UART (uartNum ), pCfg -> baud , MXC_UART_IBRO_CLK );
299+
306300
307301 (void )result ;
308302 PAL_SYS_ASSERT (result == 0 );
Original file line number Diff line number Diff line change @@ -301,14 +301,7 @@ void PalUartInit(PalUartId_t id, const PalUartConfig_t *pCfg)
301301 palUartCb [uartNum ].rdCback = pCfg -> rdCback ;
302302 palUartCb [uartNum ].wrCback = pCfg -> wrCback ;
303303
304- /* Initialize the UART */
305- if (uartNum == 3 ) {
306- /* Use the IBRO clock for UART3 */
307- result = MXC_UART_Init (MXC_UART_GET_UART (uartNum ), pCfg -> baud , MXC_UART_IBRO_CLK );
308- } else {
309- /* Use the APB clock for rest of the UARTs */
310- result = MXC_UART_Init (MXC_UART_GET_UART (uartNum ), pCfg -> baud , MXC_UART_APB_CLK );
311- }
304+ result = MXC_UART_Init (MXC_UART_GET_UART (uartNum ), pCfg -> baud , MXC_UART_IBRO_CLK );
312305
313306 (void )result ;
314307 PAL_SYS_ASSERT (result == 0 );
You can’t perform that action at this time.
0 commit comments