Skip to content

Commit

Permalink
Revert "feat(PeriphDrivers): Allow Skipping Clock and GPIO Initializa…
Browse files Browse the repository at this point in the history
…tion (#932)"

This reverts commit e75ecd7.
  • Loading branch information
EricB-ADI committed Aug 21, 2024
1 parent 283e9b1 commit 6dc946b
Show file tree
Hide file tree
Showing 29 changed files with 2 additions and 108 deletions.
4 changes: 0 additions & 4 deletions Libraries/PeriphDrivers/Include/MAX32650/i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,6 @@ typedef int (*mxc_i2c_slave_handler_t)(mxc_i2c_regs_t *i2c, mxc_i2c_slave_event_
/**
* @brief Initialize and enable I2C peripheral.
*
* @note On default this function enables I2C peripheral clock and i2c gpio pins.
* if you wish to manage clock and gpio related things in upper level instead of here.
* Define MSDK_NO_GPIO_CLK_INIT flag in project.mk file.
* By this flag this function will remove clock and gpio related codes from file.
*
* @param i2c Pointer to I2C registers (selects the I2C block used.)
* @param masterMode Whether to put the device in master or slave mode. Use
Expand Down
5 changes: 0 additions & 5 deletions Libraries/PeriphDrivers/Include/MAX32650/spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,6 @@ struct _mxc_spi_req_t {
*
* These parameters can be modified after initialization using low level functions
*
* @note On default this function enables SPI peripheral clock and spi gpio pins.
* if you wish to manage clock and gpio related things in upper level instead of here.
* Define MSDK_NO_GPIO_CLK_INIT flag in project.mk file.
* By this flag this function will remove clock and gpio related codes from file.
*
* @param spi Pointer to SPI registers (selects the SPI block used.)
* @param masterMode Whether to put the device in master or slave mode. Use
* non-zero for master mode, and zero for slave mode.
Expand Down
5 changes: 0 additions & 5 deletions Libraries/PeriphDrivers/Include/MAX32650/uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,6 @@ struct _mxc_uart_req_t {
*
* These parameters can be modified after initialization using low level functions
*
* @note On default this function enables UART peripheral clock.
* if you wish to manage clock and gpio related things in upper level instead of here.
* Define MSDK_NO_GPIO_CLK_INIT flag in project.mk file.
* By this flag this function will remove clock and gpio related codes from file.
*
* @param uart Pointer to UART registers (selects the UART block used.)
* @param baud The requested clock frequency. The actual clock frequency
* will be returned by the function if successful.
Expand Down
4 changes: 0 additions & 4 deletions Libraries/PeriphDrivers/Include/MAX32660/i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,6 @@ typedef int (*mxc_i2c_slave_handler_t)(mxc_i2c_regs_t *i2c, mxc_i2c_slave_event_
/**
* @brief Initialize and enable I2C peripheral.
*
* @note On default this function enables I2C peripheral clock and i2c gpio pins.
* if you wish to manage clock and gpio related things in upper level instead of here.
* Define MSDK_NO_GPIO_CLK_INIT flag in project.mk file.
* By this flag this function will remove clock and gpio related codes from file.
*
* @param i2c Pointer to I2C registers (selects the I2C block used.)
* @param masterMode Whether to put the device in master or slave mode. Use
Expand Down
5 changes: 0 additions & 5 deletions Libraries/PeriphDrivers/Include/MAX32660/spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,6 @@ struct _mxc_spi_req_t {
*
* These parameters can be modified after initialization using low level functions
*
* @note On default this function enables I2C peripheral clock and i2c gpio pins.
* if you wish to manage clock and gpio related things in upper level instead of here.
* Define MSDK_NO_GPIO_CLK_INIT flag in project.mk file.
* By this flag this function will remove clock and gpio related codes from file.
*
* @param spi Pointer to SPI registers (selects the SPI block used.)
* @param masterMode Whether to put the device in master or slave mode. Use
* non-zero for master mode, and zero for slave mode.
Expand Down
4 changes: 0 additions & 4 deletions Libraries/PeriphDrivers/Include/MAX32662/i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,6 @@ typedef int (*mxc_i2c_slave_handler_t)(mxc_i2c_regs_t *i2c, mxc_i2c_slave_event_
/**
* @brief Initialize and enable I2C peripheral.
*
* @note On default this function enables I2C peripheral clock and i2c gpio pins.
* if you wish to manage clock and gpio related things in upper level instead of here.
* Define MSDK_NO_GPIO_CLK_INIT flag in project.mk file.
* By this flag this function will remove clock and gpio related codes from file.
*
* @param i2c Pointer to I2C registers (selects the I2C block used.)
* @param masterMode Whether to put the device in master or slave mode. Use
Expand Down
5 changes: 0 additions & 5 deletions Libraries/PeriphDrivers/Include/MAX32662/spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,6 @@ struct _mxc_spi_req_t {
*
* These parameters can be modified after initialization using low level functions
*
* @note On default this function enables SPI peripheral clock and spi gpio pins.
* if you wish to manage clock and gpio related things in upper level instead of here.
* Define MSDK_NO_GPIO_CLK_INIT flag in project.mk file.
* By this flag this function will remove clock and gpio related codes from file.
*
* @param spi Pointer to SPI registers (selects the SPI block used.)
* @param masterMode Whether to put the device in master or slave mode. Use
* non-zero for master mode, and zero for slave mode.
Expand Down
5 changes: 0 additions & 5 deletions Libraries/PeriphDrivers/Include/MAX32662/uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,6 @@ struct _mxc_uart_req_t {
*
* These parameters can be modified after initialization using low level functions
*
* @note On default this function enables UART peripheral clock.
* if you wish to manage clock and gpio related things in upper level instead of here.
* Define MSDK_NO_GPIO_CLK_INIT flag in project.mk file.
* By this flag this function will remove clock and gpio related codes from file.
*
* @param uart Pointer to UART registers (selects the UART block used.)
* @param baud The requested clock frequency. The actual clock frequency
* will be returned by the function if successful.
Expand Down
4 changes: 0 additions & 4 deletions Libraries/PeriphDrivers/Include/MAX32672/i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,6 @@ typedef int (*mxc_i2c_slave_handler_t)(mxc_i2c_regs_t *i2c, mxc_i2c_slave_event_
/**
* @brief Initialize and enable I2C peripheral.
*
* @note On default this function enables I2C peripheral clock and i2c gpio pins.
* if you wish to manage clock and gpio related things in upper level instead of here.
* Define MSDK_NO_GPIO_CLK_INIT flag in project.mk file.
* By this flag this function will remove clock and gpio related codes from file.
*
* @param i2c Pointer to I2C registers (selects the I2C block used.)
* @param masterMode Whether to put the device in master or slave mode. Use
Expand Down
5 changes: 0 additions & 5 deletions Libraries/PeriphDrivers/Include/MAX32672/spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,6 @@ struct _mxc_spi_req_t {
*
* These parameters can be modified after initialization using low level functions
*
* @note On default this function enables SPI peripheral clock and spi gpio pins.
* if you wish to manage clock and gpio related things in upper level instead of here.
* Define MSDK_NO_GPIO_CLK_INIT flag in project.mk file.
* By this flag this function will remove clock and gpio related codes from file.
*
* @param spi Pointer to SPI registers (selects the SPI block used.)
* @param masterMode Whether to put the device in master or slave mode. Use
* non-zero for master mode, and zero for slave mode.
Expand Down
5 changes: 0 additions & 5 deletions Libraries/PeriphDrivers/Include/MAX32672/uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,6 @@ sys_map_t MXC_UART_GetPinMapping(mxc_uart_regs_t *uart);
*
* These parameters can be modified after initialization using low level functions
*
* @note On default this function enables UART peripheral clock.
* if you wish to manage clock and gpio related things in upper level instead of here.
* Define MSDK_NO_GPIO_CLK_INIT flag in project.mk file.
* By this flag this function will remove clock and gpio related codes from file.
*
* @param uart Pointer to UART registers (selects the UART block used.)
* @param baud The requested clock frequency. The actual clock frequency
* will be returned by the function if successful.
Expand Down
4 changes: 0 additions & 4 deletions Libraries/PeriphDrivers/Include/MAX32675/i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,6 @@ typedef int (*mxc_i2c_slave_handler_t)(mxc_i2c_regs_t *i2c, mxc_i2c_slave_event_
/**
* @brief Initialize and enable I2C peripheral.
*
* @note On default this function enables I2C peripheral clock and i2c gpio pins.
* if you wish to manage clock and gpio related things in upper level instead of here.
* Define MSDK_NO_GPIO_CLK_INIT flag in project.mk file.
* By this flag this function will remove clock and gpio related codes from file.
*
* @param i2c Pointer to I2C registers (selects the I2C block used.)
* @param masterMode Whether to put the device in master or slave mode. Use
Expand Down
5 changes: 0 additions & 5 deletions Libraries/PeriphDrivers/Include/MAX32675/spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,6 @@ struct _mxc_spi_req_t {
* SPI Mode - 0
* SPI Width - SPI_WIDTH_STANDARD (even if quadModeUsed is set)
*
* @note On default this function enables SPI peripheral clock and spi gpio pins.
* if you wish to manage clock and gpio related things in upper level instead of here.
* Define MSDK_NO_GPIO_CLK_INIT flag in project.mk file.
* By this flag this function will remove clock and gpio related codes from file.
*
* These parameters can be modified after initialization using low level functions
*
* @param spi Pointer to SPI registers (selects the SPI block used.)
Expand Down
5 changes: 0 additions & 5 deletions Libraries/PeriphDrivers/Include/MAX32675/uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,6 @@ struct _mxc_uart_req_t {
*
* These parameters can be modified after initialization using low level functions
*
* @note On default this function enables UART peripheral clock.
* if you wish to manage clock and gpio related things in upper level instead of here.
* Define MSDK_NO_GPIO_CLK_INIT flag in project.mk file.
* By this flag this function will remove clock and gpio related codes from file.
*
* @param uart Pointer to UART registers (selects the UART block used.)
* @param baud The requested clock frequency. The actual clock frequency
* will be returned by the function if successful.
Expand Down
4 changes: 0 additions & 4 deletions Libraries/PeriphDrivers/Include/MAX32680/i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,6 @@ typedef int (*mxc_i2c_slave_handler_t)(mxc_i2c_regs_t *i2c, mxc_i2c_slave_event_
/**
* @brief Initialize and enable I2C peripheral.
*
* @note On default this function enables I2C peripheral clock and i2c gpio pins.
* if you wish to manage clock and gpio related things in upper level instead of here.
* Define MSDK_NO_GPIO_CLK_INIT flag in project.mk file.
* By this flag this function will remove clock and gpio related codes from file.
*
* @param i2c Pointer to I2C registers (selects the I2C block used.)
* @param masterMode Whether to put the device in master or slave mode. Use
Expand Down
5 changes: 0 additions & 5 deletions Libraries/PeriphDrivers/Include/MAX32680/spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,6 @@ struct _mxc_spi_req_t {
*
* These parameters can be modified after initialization using low level functions
*
* @note On default this function enables SPI peripheral clock and spi gpio pins.
* if you wish to manage clock and gpio related things in upper level instead of here.
* Define MSDK_NO_GPIO_CLK_INIT flag in project.mk file.
* By this flag this function will remove clock and gpio related codes from file.
*
* @param spi Pointer to SPI registers (selects the SPI block used.)
* @param masterMode Whether to put the device in master or slave mode. Use
* non-zero for master mode, and zero for slave mode.
Expand Down
5 changes: 0 additions & 5 deletions Libraries/PeriphDrivers/Include/MAX32680/uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,6 @@ struct _mxc_uart_req_t {
*
* These parameters can be modified after initialization using low level functions
*
* @note On default this function enables UART peripheral clock.
* if you wish to manage clock and gpio related things in upper level instead of here.
* Define MSDK_NO_GPIO_CLK_INIT flag in project.mk file.
* By this flag this function will remove clock and gpio related codes from file.
*
* @param uart Pointer to UART registers (selects the UART block used.)
* @param baud The requested clock frequency. The actual clock frequency
* will be returned by the function if successful.
Expand Down
5 changes: 2 additions & 3 deletions Libraries/PeriphDrivers/Source/I2C/i2c_me10.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
int MXC_I2C_Init(mxc_i2c_regs_t *i2c, int masterMode, unsigned int slaveAddr)
{
int err;
int idx = MXC_I2C_GET_IDX(i2c);

#ifndef MSDK_NO_GPIO_CLK_INIT
switch (MXC_I2C_GET_IDX(i2c)) {
switch (idx) {
case 0:
MXC_SYS_ClockEnable(MXC_SYS_PERIPH_CLOCK_I2C0);
MXC_GPIO_Config(&gpio_cfg_i2c0);
Expand All @@ -65,7 +65,6 @@ int MXC_I2C_Init(mxc_i2c_regs_t *i2c, int masterMode, unsigned int slaveAddr)
default:
return E_BAD_PARAM;
}
#endif // MSDK_NO_GPIO_CLK_INIT

if ((err = MXC_I2C_RevA_Init((mxc_i2c_reva_regs_t *)i2c, masterMode, slaveAddr)) !=
E_NO_ERROR) {
Expand Down
2 changes: 0 additions & 2 deletions Libraries/PeriphDrivers/Source/I2C/i2c_me11.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ int MXC_I2C_Init(mxc_i2c_regs_t *i2c, int masterMode, unsigned int slaveAddr)
return E_NULL_PTR;
}

#ifndef MSDK_NO_GPIO_CLK_INIT
MXC_I2C_Shutdown(i2c); // Clear everything out

if (i2c == MXC_I2C0) {
Expand All @@ -62,7 +61,6 @@ int MXC_I2C_Init(mxc_i2c_regs_t *i2c, int masterMode, unsigned int slaveAddr)
} else {
return E_NO_DEVICE;
}
#endif // MSDK_NO_GPIO_CLK_INIT

return MXC_I2C_RevA_Init((mxc_i2c_reva_regs_t *)i2c, masterMode, slaveAddr);
}
Expand Down
2 changes: 0 additions & 2 deletions Libraries/PeriphDrivers/Source/I2C/i2c_me12.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ int MXC_I2C_Init(mxc_i2c_regs_t *i2c, int masterMode, unsigned int slaveAddr)
return E_NULL_PTR;
}

#ifndef MSDK_NO_GPIO_CLK_INIT
MXC_I2C_Shutdown(i2c); // Clear everything out

if (i2c == MXC_I2C0) {
Expand All @@ -65,7 +64,6 @@ int MXC_I2C_Init(mxc_i2c_regs_t *i2c, int masterMode, unsigned int slaveAddr)
} else {
return E_NO_DEVICE;
}
#endif // MSDK_NO_GPIO_CLK_INIT

return MXC_I2C_RevA_Init((mxc_i2c_reva_regs_t *)i2c, masterMode, slaveAddr);
}
Expand Down
2 changes: 0 additions & 2 deletions Libraries/PeriphDrivers/Source/I2C/i2c_me21.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ int MXC_I2C_Init(mxc_i2c_regs_t *i2c, int masterMode, unsigned int slaveAddr)
return E_NULL_PTR;
}

#ifndef MSDK_NO_GPIO_CLK_INIT
MXC_I2C_Shutdown(i2c); // Clear everything out

if (i2c == MXC_I2C0) {
Expand All @@ -84,7 +83,6 @@ int MXC_I2C_Init(mxc_i2c_regs_t *i2c, int masterMode, unsigned int slaveAddr)
} else {
return E_NO_DEVICE;
}
#endif // MSDK_NO_GPIO_CLK_INIT

return MXC_I2C_RevA_Init((mxc_i2c_reva_regs_t *)i2c, masterMode, slaveAddr);
}
Expand Down
2 changes: 0 additions & 2 deletions Libraries/PeriphDrivers/Source/SPI/spi_me10.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ int MXC_SPI_Init(mxc_spi_regs_t *spi, int masterMode, int quadModeUsed, int numS
return E_BAD_PARAM;
}

#ifndef MSDK_NO_GPIO_CLK_INIT
switch (MXC_SPI_GET_IDX(spi)) {
case 0:
MXC_SYS_Reset_Periph(MXC_SYS_RESET_SPI0);
Expand All @@ -79,7 +78,6 @@ int MXC_SPI_Init(mxc_spi_regs_t *spi, int masterMode, int quadModeUsed, int numS
default:
return E_BAD_PARAM;
}
#endif // MSDK_NO_GPIO_CLK_INIT

return MXC_SPI_RevA1_Init((mxc_spi_reva_regs_t *)spi, masterMode, quadModeUsed, numSlaves,
ssPolarity, hz);
Expand Down
2 changes: 0 additions & 2 deletions Libraries/PeriphDrivers/Source/SPI/spi_me11.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ int MXC_SPI_Init(mxc_spi_regs_t *spi, int masterMode, int quadModeUsed, int numS
return E_BAD_PARAM;
}

#ifndef MSDK_NO_GPIO_CLK_INIT
// Configure GPIO for spi
if (spi == MXC_SPI0) {
MXC_GCR->rst0 |= MXC_F_GCR_RST0_SPI0;
Expand All @@ -58,7 +57,6 @@ int MXC_SPI_Init(mxc_spi_regs_t *spi, int masterMode, int quadModeUsed, int numS
} else {
return E_NO_DEVICE;
}
#endif

return MXC_SPI_RevA1_Init((mxc_spi_reva_regs_t *)spi, masterMode, quadModeUsed, numSlaves,
ssPolarity, hz);
Expand Down
4 changes: 0 additions & 4 deletions Libraries/PeriphDrivers/Source/SPI/spi_me12.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ int MXC_SPI_Init(mxc_spi_regs_t *spi, int masterMode, int quadModeUsed, int numS
return E_BAD_PARAM;
}

#ifndef MSDK_NO_GPIO_CLK_INIT
mxc_gpio_cfg_t gpio_cfg_spi;
gpio_cfg_spi.pad = MXC_GPIO_PAD_NONE;
gpio_cfg_spi.port = MXC_GPIO0;
Expand Down Expand Up @@ -141,9 +140,6 @@ int MXC_SPI_Init(mxc_spi_regs_t *spi, int masterMode, int quadModeUsed, int numS
}

MXC_GPIO_Config(&gpio_cfg_spi);
#else
(void)pins;
#endif // MSDK_NO_GPIO_CLK_INIT

return MXC_SPI_RevA1_Init((mxc_spi_reva_regs_t *)spi, masterMode, quadModeUsed, numSlaves,
ssPolarity, hz);
Expand Down
2 changes: 0 additions & 2 deletions Libraries/PeriphDrivers/Source/SPI/spi_me16.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ int MXC_SPI_Init(mxc_spi_regs_t *spi, int masterMode, int quadModeUsed, int numS
return E_BAD_PARAM;
}

#ifndef MSDK_NO_GPIO_CLK_INIT
// Configure GPIO for spi
if (spi == MXC_SPI0) {
MXC_SYS_ClockEnable(MXC_SYS_PERIPH_CLOCK_SPI0);
Expand All @@ -66,7 +65,6 @@ int MXC_SPI_Init(mxc_spi_regs_t *spi, int masterMode, int quadModeUsed, int numS
} else {
return E_NO_DEVICE;
}
#endif // MSDK_NO_GPIO_CLK_INIT

return MXC_SPI_RevA1_Init(spi, masterMode, quadModeUsed, numSlaves, ssPolarity, hz);
}
Expand Down
2 changes: 0 additions & 2 deletions Libraries/PeriphDrivers/Source/SPI/spi_me21.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ int MXC_SPI_Init(mxc_spi_regs_t *spi, int masterMode, int quadModeUsed, int numS
return E_BAD_PARAM;
}

#ifndef MSDK_NO_GPIO_CLK_INIT
// Configure GPIO for spi
if (spi == MXC_SPI0) {
MXC_SYS_ClockEnable(MXC_SYS_PERIPH_CLOCK_SPI0);
Expand Down Expand Up @@ -85,7 +84,6 @@ int MXC_SPI_Init(mxc_spi_regs_t *spi, int masterMode, int quadModeUsed, int numS
} else {
return E_NO_DEVICE;
}
#endif // MSDK_NO_GPIO_CLK_INIT

return MXC_SPI_RevA1_Init((mxc_spi_reva_regs_t *)spi, masterMode, quadModeUsed, numSlaves,
ssPolarity, hz);
Expand Down
4 changes: 0 additions & 4 deletions Libraries/PeriphDrivers/Source/UART/uart_me12.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ int MXC_UART_AsyncStop(mxc_uart_regs_t *uart)

int MXC_UART_Init(mxc_uart_regs_t *uart, unsigned int baud, mxc_uart_clock_t clock, sys_map_t map)
{
#ifndef MSDK_NO_GPIO_CLK_INIT
int retval;

retval = MXC_UART_Shutdown(uart);
Expand All @@ -65,9 +64,6 @@ int MXC_UART_Init(mxc_uart_regs_t *uart, unsigned int baud, mxc_uart_clock_t clo
} else {
return E_BAD_PARAM;
}
#else
(void)map;
#endif // MSDK_NO_GPIO_CLK_INIT

retval = MXC_UART_SetClockSource(uart, clock);
if (retval != E_NO_ERROR) {
Expand Down
2 changes: 0 additions & 2 deletions Libraries/PeriphDrivers/Source/UART/uart_me16.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ int MXC_UART_AsyncStop(mxc_uart_regs_t *uart)

int MXC_UART_Init(mxc_uart_regs_t *uart, unsigned int baud, mxc_uart_clock_t clock)
{
#ifndef MSDK_NO_GPIO_CLK_INIT
int retval, error;

retval = MXC_UART_Shutdown(uart);
Expand Down Expand Up @@ -96,7 +95,6 @@ int MXC_UART_Init(mxc_uart_regs_t *uart, unsigned int baud, mxc_uart_clock_t clo
default:
return E_NOT_SUPPORTED;
}
#endif // MSDK_NO_GPIO_CLK_INIT

return MXC_UART_RevB_Init((mxc_uart_revb_regs_t *)uart, baud, (mxc_uart_revb_clock_t)clock);
}
Expand Down
2 changes: 0 additions & 2 deletions Libraries/PeriphDrivers/Source/UART/uart_me21.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ int MXC_UART_AsyncStop(mxc_uart_regs_t *uart)

int MXC_UART_Init(mxc_uart_regs_t *uart, unsigned int baud, mxc_uart_clock_t clock)
{
#ifndef MSDK_NO_GPIO_CLK_INIT
int retval;
sys_map_t current_pin_mapping = MXC_UART_GetPinMapping(uart);

Expand Down Expand Up @@ -146,7 +145,6 @@ int MXC_UART_Init(mxc_uart_regs_t *uart, unsigned int baud, mxc_uart_clock_t clo
MXC_MCR->lppioctrl |= (MXC_F_MCR_LPPIOCTRL_LPUART0_RX | MXC_F_MCR_LPPIOCTRL_LPUART0_TX);
break;
}
#endif // MSDK_NO_GPIO_CLK_INIT

return MXC_UART_RevB_Init((mxc_uart_revb_regs_t *)uart, baud, clock);
}
Expand Down

0 comments on commit 6dc946b

Please sign in to comment.